diff options
| author | Alan Conway <aconway@apache.org> | 2009-11-18 17:26:43 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-11-18 17:26:43 +0000 |
| commit | 1674d80b61862e1054140c96f5db9eb401b11f11 (patch) | |
| tree | 1169853cb8f8376d7ebb078d28b2e76523302742 /cpp/src/qpid/cluster/InitialStatusMap.h | |
| parent | bd3cae3b5691436369b4c37a570c766c1e8aafd2 (diff) | |
| download | qpid-python-1674d80b61862e1054140c96f5db9eb401b11f11.tar.gz | |
Added cluster option --cluster-size.
--cluster-size=N means that during start-up the cluster waits to have N members
before accepting any clients.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@881839 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/InitialStatusMap.h')
| -rw-r--r-- | cpp/src/qpid/cluster/InitialStatusMap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/InitialStatusMap.h b/cpp/src/qpid/cluster/InitialStatusMap.h index 4605a4c1fe..9e9b71e363 100644 --- a/cpp/src/qpid/cluster/InitialStatusMap.h +++ b/cpp/src/qpid/cluster/InitialStatusMap.h @@ -37,7 +37,7 @@ class InitialStatusMap public: typedef framing::ClusterInitialStatusBody Status; - InitialStatusMap(const MemberId& self); + InitialStatusMap(const MemberId& self, size_t size); /** Process a config change. @return true if we need to re-send our status */ void configChange(const MemberSet& newConfig); /** @return true if we need to re-send status */ @@ -71,6 +71,7 @@ class InitialStatusMap MemberSet firstConfig; MemberId self; bool completed, resendNeeded; + size_t size; }; }} // namespace qpid::cluster |
