|
@@ -93,7 +93,7 @@ void AdaptiveFileAllocationIterator::allocateChunk()
|
|
bool AdaptiveFileAllocationIterator::finished()
|
|
bool AdaptiveFileAllocationIterator::finished()
|
|
{
|
|
{
|
|
if(allocator_.isNull()) {
|
|
if(allocator_.isNull()) {
|
|
- return (uint64_t)offset_ >= totalLength_;
|
|
|
|
|
|
+ return (uint64_t)offset_ == totalLength_;
|
|
} else {
|
|
} else {
|
|
return allocator_->finished();
|
|
return allocator_->finished();
|
|
}
|
|
}
|