提交 27a678de 编写于 作者: yoocent's avatar yoocent 提交者: dongeforever

[ROCKETMQ-273] return an expression when a function has no write operations.

Author: wangkai <8738115@qq.com>

Closes #150 from kevin-better/develop.
上级 368e7c86
......@@ -416,12 +416,8 @@ public class DefaultMessageStore implements MessageStore {
long begin = this.getCommitLog().getBeginTimeInLock();
long diff = this.systemClock.now() - begin;
if (diff < 10000000
&& diff > this.messageStoreConfig.getOsPageCacheBusyTimeOutMills()) {
return true;
}
return false;
return diff < 10000000
&& diff > this.messageStoreConfig.getOsPageCacheBusyTimeOutMills();
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册