fix datanode using 100% cpu
@@ -700,7 +700,7 @@ private void whirlingLikeASufi()
//
long waitTime = 1000;
synchronized (pendingIncrementalBRperStorage) {
- if (waitTime > 0 && sendImmediateIBR) {
+ if (waitTime > 0 && !sendImmediateIBR) {
try {
pendingIncrementalBRperStorage.wait(waitTime);
} catch (InterruptedException ie) {
