You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/07/24 03:37:39 UTC
[GitHub] [rocketmq-client-cpp] ifplusor edited a comment on issue #322: Consume Offset been Updated Incorrectly with Orderly Push Consumer
ifplusor edited a comment on issue #322:
URL: https://github.com/apache/rocketmq-client-cpp/issues/322#issuecomment-663332994
I think u are right but use getCacheMsgCount() to check cache is empty is better, and getCacheMsgCount need to change to below:
```
int PullRequest::getCacheMsgCount() {
boost::lock_guard<boost::mutex> lock(m_pullRequestLock);
return m_msgTreeMap.size() + m_msgTreeMapTemp.size();
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org