diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-31 13:58:25 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-07-31 13:58:25 +0000 |
| commit | 4280650e299cd880993f9a256fd267ceeceac303 (patch) | |
| tree | 6b922c4a05c01a764f09e84294d1f7029341b922 /src | |
| parent | 7958ce43662d8dd070f2ca71c06ca630198568ef (diff) | |
2010-07-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that
AdaptiveFileAllocationIterator::getCurrentLength() does not return
updated allocated bytes.
* src/AdaptiveFileAllocationIterator.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/AdaptiveFileAllocationIterator.h | 6 |
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() |
