You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by di...@apache.org on 2019/01/15 01:52:20 UTC
[rocketmq-client-cpp] branch master updated: Resolve the compile
warning (#66)
This is an automated email from the ASF dual-hosted git repository.
dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git
The following commit(s) were added to refs/heads/master by this push:
new 6f0908e Resolve the compile warning (#66)
6f0908e is described below
commit 6f0908e046961ca031c2cec835852380f3f24df4
Author: Jonnxu <jo...@163.com>
AuthorDate: Tue Jan 15 09:52:16 2019 +0800
Resolve the compile warning (#66)
---
src/consumer/PullRequest.cpp | 6 +++---
src/consumer/PullRequest.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/consumer/PullRequest.cpp b/src/consumer/PullRequest.cpp
index 8510e43..b261d82 100644
--- a/src/consumer/PullRequest.cpp
+++ b/src/consumer/PullRequest.cpp
@@ -28,8 +28,8 @@ PullRequest::PullRequest(const string& groupname)
m_queueOffsetMax(0),
m_bDroped(false),
m_bLocked(false),
- m_bPullMsgEventInprogress(false),
- m_latestPullRequestOpaque(0) {}
+ m_latestPullRequestOpaque(0),
+ m_bPullMsgEventInprogress(false) {}
PullRequest::~PullRequest() {
m_msgTreeMapTemp.clear();
@@ -262,7 +262,7 @@ bool PullRequest::addPullMsgEvent() {
return false;
}
-int PullRequest::getLatestPullRequestOpaque() const {
+int PullRequest::getLatestPullRequestOpaque() {
boost::lock_guard<boost::mutex> lock(m_pullRequestLock);
return m_latestPullRequestOpaque;
}
diff --git a/src/consumer/PullRequest.h b/src/consumer/PullRequest.h
index 80c286a..57ab70b 100644
--- a/src/consumer/PullRequest.h
+++ b/src/consumer/PullRequest.h
@@ -69,7 +69,7 @@ class PullRequest {
boost::timed_mutex& getPullRequestCriticalSection();
void removePullMsgEvent();
bool addPullMsgEvent();
- int getLatestPullRequestOpaque() const;
+ int getLatestPullRequestOpaque();
void setLatestPullRequestOpaque(int opaque);
public: