summaryrefslogtreecommitdiff
path: root/src/RequestGroup.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/RequestGroup.cc')
-rw-r--r--src/RequestGroup.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc
index 01e95a40..6297d38c 100644
--- a/src/RequestGroup.cc
+++ b/src/RequestGroup.cc
@@ -149,7 +149,8 @@ void RequestGroup::initAndOpenFile()
bool RequestGroup::needsFileAllocation() const
{
return _option->get(PREF_FILE_ALLOCATION) == V_PREALLOC
- && File(_segmentMan->getFilePath()).size() < _segmentMan->totalSize;
+ && File(_segmentMan->getFilePath()).size() < _segmentMan->totalSize
+ && _option->getAsLLInt(PREF_NO_FILE_ALLOCATION_LIMIT) < _segmentMan->totalSize;
}
bool RequestGroup::fileExists() const