From bb7e2e69db46c1abd51cdfc5dbfe11814adc06f4 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 16 Jun 2011 22:36:20 +0900 Subject: [PATCH] Call requestQueueCheck() even if reservedGroups_ is not empty. --- src/RequestGroupMan.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/RequestGroupMan.cc b/src/RequestGroupMan.cc index a15ce44e..5c8ab05c 100644 --- a/src/RequestGroupMan.cc +++ b/src/RequestGroupMan.cc @@ -139,9 +139,7 @@ void RequestGroupMan::insertReservedGroup void RequestGroupMan::insertReservedGroup (size_t pos, const SharedHandle& group) { - if(reservedGroups_.empty()) { - requestQueueCheck(); - } + requestQueueCheck(); reservedGroups_.insert (reservedGroups_.begin()+std::min(reservedGroups_.size(), pos), group); }