瀏覽代碼

2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Fixed the bug that Request object is not added to
	_inFlightRequests in findFasterRequest().
	* src/FileEntry.cc
Tatsuhiro Tsujikawa 16 年之前
父節點
當前提交
39c2b57842
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 6 0
      ChangeLog
  2. 1 0
      src/FileEntry.cc

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+2009-11-20  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Fixed the bug that Request object is not added to
+	_inFlightRequests in findFasterRequest().
+	* src/FileEntry.cc
+
 2009-11-18  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Changed the strategry of how to increase the number of outstanding

+ 1 - 0
src/FileEntry.cc

@@ -178,6 +178,7 @@ FileEntry::findFasterRequest(const SharedHandle<Request>& base)
     // TODO we should consider that "fastest" is very slow.
     SharedHandle<Request> fastestRequest = _requestPool.front();
     _requestPool.pop_front();
+    _inFlightRequests.push_back(fastestRequest);
     return fastestRequest;
   }
   return SharedHandle<Request>();