From 39c2b5784234ae16919a73d63606314f2acd3726 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 20 Nov 2009 07:44:42 +0000 Subject: [PATCH] 2009-11-20 Tatsuhiro Tsujikawa Fixed the bug that Request object is not added to _inFlightRequests in findFasterRequest(). * src/FileEntry.cc --- ChangeLog | 6 ++++++ src/FileEntry.cc | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6fede5f5..ee2c736e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-20 Tatsuhiro Tsujikawa + + Fixed the bug that Request object is not added to + _inFlightRequests in findFasterRequest(). + * src/FileEntry.cc + 2009-11-18 Tatsuhiro Tsujikawa Changed the strategry of how to increase the number of outstanding diff --git a/src/FileEntry.cc b/src/FileEntry.cc index be57587d..7d030f54 100644 --- a/src/FileEntry.cc +++ b/src/FileEntry.cc @@ -178,6 +178,7 @@ FileEntry::findFasterRequest(const SharedHandle& base) // TODO we should consider that "fastest" is very slow. SharedHandle fastestRequest = _requestPool.front(); _requestPool.pop_front(); + _inFlightRequests.push_back(fastestRequest); return fastestRequest; } return SharedHandle();