diff options
| author | Alan Conway <aconway@apache.org> | 2012-01-18 22:07:58 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-01-18 22:07:58 +0000 |
| commit | 95d12bc60580be2acf85af1ec8cb13ed46ddc7a9 (patch) | |
| tree | 0a9887c89748f5e83a0ff1c4b73bdc3d21200f35 /cpp/src/qpid/cluster | |
| parent | 7614a68ecdac345920fc00e4f4117c5b36830de4 (diff) | |
| download | qpid-python-95d12bc60580be2acf85af1ec8cb13ed46ddc7a9.tar.gz | |
QPID-3603: Replace public broker::Consumer::position variable with get/set function pair.
Public member variables are not good sytle.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1233080 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster')
| -rw-r--r-- | cpp/src/qpid/cluster/Connection.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/cluster/UpdateClient.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index d81fbd0494..c16ab72876 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -406,7 +406,7 @@ void Connection::consumerState(const string& name, bool blocked, bool notifyEnab uint32_t usedMsgCredit, uint32_t usedByteCredit) { broker::SemanticState::ConsumerImpl::shared_ptr c = semanticState().find(name); - c->position = position; + c->setPosition(position); c->setBlocked(blocked); if (c->getCredit().isWindowMode()) c->getCredit().consume(usedMsgCredit, usedByteCredit); if (notifyEnabled) c->enableNotify(); else c->disableNotify(); diff --git a/cpp/src/qpid/cluster/UpdateClient.cpp b/cpp/src/qpid/cluster/UpdateClient.cpp index 25a3a3327c..95c64ff060 100644 --- a/cpp/src/qpid/cluster/UpdateClient.cpp +++ b/cpp/src/qpid/cluster/UpdateClient.cpp @@ -542,7 +542,7 @@ void UpdateClient::updateConsumer( ci->getTag(), ci->isBlocked(), ci->isNotifyEnabled(), - ci->position, + ci->getPosition(), ci->getCredit().used().messages, ci->getCredit().used().bytes ); |
