فهرست منبع

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
Tatsuhiro Tsujikawa 15 سال پیش
والد
کامیت
4280650e29
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      src/AdaptiveFileAllocationIterator.h

+ 5 - 1
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()