summaryrefslogtreecommitdiff
path: root/src/AdaptiveFileAllocationIterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/AdaptiveFileAllocationIterator.h')
-rw-r--r--src/AdaptiveFileAllocationIterator.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/AdaptiveFileAllocationIterator.h b/src/AdaptiveFileAllocationIterator.h
index 7a5cd51d..637a7cae 100644
--- a/src/AdaptiveFileAllocationIterator.h
+++ b/src/AdaptiveFileAllocationIterator.h
@@ -66,7 +66,11 @@ public:
virtual off_t getCurrentLength()
{
- return offset_;
+ if(allocator_.isNull()) {
+ return offset_;
+ } else {
+ return allocator_->getCurrentLength();
+ }
}
virtual uint64_t getTotalLength()