HBASE-2513 hbase-2414 added bug where we'd tight-loop if no root available

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@941546 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-05-05 23:34:59 +00:00
parent 14b68ca4c0
commit 013fd99d0d
1 changed files with 2 additions and 2 deletions

View File

@ -122,8 +122,8 @@ public class RegionServerOperationQueue {
// it first.
if (rootRegionLocation != null) {
op = delayedToDoQueue.poll();
} else {
// if there aren't any todo items in the queue, sleep for a bit.
}
if (op == null) {
try {
op = toDoQueue.poll(threadWakeFrequency, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {