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
pull/1/head
Tatsuhiro Tsujikawa 2010-07-31 13:58:25 +00:00
parent 7958ce4366
commit 4280650e29
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ public:
virtual off_t getCurrentLength()
{
return offset_;
if(allocator_.isNull()) {
return offset_;
} else {
return allocator_->getCurrentLength();
}
}
virtual uint64_t getTotalLength()