diff options
| author | Alan Conway <aconway@apache.org> | 2009-11-25 18:36:09 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-11-25 18:36:09 +0000 |
| commit | 3c1e695fe75391f8ed86c6ddbabed83220ecbd61 (patch) | |
| tree | 8421c735e04057e65b54bbc3f1cfdce5e21c23c5 /cpp/src/qpid/cluster/InitialStatusMap.h | |
| parent | 54852d1be662a49d6e97edd50785ffa0340b9ed7 (diff) | |
| download | qpid-python-3c1e695fe75391f8ed86c6ddbabed83220ecbd61.tar.gz | |
Consistency checks for persistent cluster startup.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@884226 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 72963ea2bb..40fd9ee49d 100644 --- a/cpp/src/qpid/cluster/InitialStatusMap.h +++ b/cpp/src/qpid/cluster/InitialStatusMap.h @@ -56,13 +56,14 @@ class InitialStatusMap bool isUpdateNeeded(); /**@pre isComplete(). @return Cluster-wide cluster ID. */ framing::Uuid getClusterId(); + /**@pre isComplete(). @throw Exception if there are any inconsistencies. */ + void checkConsistent(); private: typedef std::map<MemberId, boost::optional<Status> > Map; static bool notInitialized(const Map::value_type&); static bool isActive(const Map::value_type&); static bool hasStore(const Map::value_type&); - void check(); Map map; MemberSet firstConfig; MemberId self; |
