未验证 提交 23bf87be 编写于 作者: C chicc999 提交者: GitHub

fix issue #705 (#706)

上级 83c5820d
...@@ -21,6 +21,7 @@ import org.apache.rocketmq.logging.InternalLogger; ...@@ -21,6 +21,7 @@ import org.apache.rocketmq.logging.InternalLogger;
import org.apache.rocketmq.logging.InternalLoggerFactory; import org.apache.rocketmq.logging.InternalLoggerFactory;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map;
public class WaitNotifyObject { public class WaitNotifyObject {
private static final InternalLogger log = InternalLoggerFactory.getLogger(LoggerName.STORE_LOGGER_NAME); private static final InternalLogger log = InternalLoggerFactory.getLogger(LoggerName.STORE_LOGGER_NAME);
...@@ -65,9 +66,9 @@ public class WaitNotifyObject { ...@@ -65,9 +66,9 @@ public class WaitNotifyObject {
synchronized (this) { synchronized (this) {
boolean needNotify = false; boolean needNotify = false;
for (Boolean value : this.waitingThreadTable.values()) { for (Map.Entry<Long,Boolean> entry : this.waitingThreadTable.entrySet()) {
needNotify = needNotify || !value; needNotify = needNotify || !entry.getValue();
value = true; entry.setValue(true);
} }
if (needNotify) { if (needNotify) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册