diff options
author | Alan Conway <aconway@apache.org> | 2010-01-06 17:01:50 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-01-06 17:01:50 +0000 |
commit | 4aeeb47e405771fc081f29f5fc3ec28aa9ffc569 (patch) | |
tree | 348ec36bf515d9f124b209268df275f7e3d22175 /qpid/cpp/src/tests/InitialStatusMap.cpp | |
parent | d7530cec59b22c2c8bf3b7f2096c3bac4de992a3 (diff) | |
download | qpid-python-4aeeb47e405771fc081f29f5fc3ec28aa9ffc569.tar.gz |
Added config-seq counter to track config changes since cluster init.
Config-seq is recorded persitently to help identify best store when
recovering from total failure.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@896538 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/InitialStatusMap.cpp')
-rw-r--r-- | qpid/cpp/src/tests/InitialStatusMap.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/InitialStatusMap.cpp b/qpid/cpp/src/tests/InitialStatusMap.cpp index 82450eac22..63214ee395 100644 --- a/qpid/cpp/src/tests/InitialStatusMap.cpp +++ b/qpid/cpp/src/tests/InitialStatusMap.cpp @@ -37,15 +37,15 @@ QPID_AUTO_TEST_SUITE(InitialStatusMapTestSuite) typedef InitialStatusMap::Status Status; Status activeStatus(const Uuid& id=Uuid()) { - return Status(ProtocolVersion(), 0, true, id, STORE_STATE_NO_STORE, Uuid()); + return Status(ProtocolVersion(), 0, true, id, STORE_STATE_NO_STORE, Uuid(), 0); } Status newcomerStatus(const Uuid& id=Uuid()) { - return Status(ProtocolVersion(), 0, false, id, STORE_STATE_NO_STORE, Uuid()); + return Status(ProtocolVersion(), 0, false, id, STORE_STATE_NO_STORE, Uuid(), 0); } Status storeStatus(bool active, StoreState state, Uuid start=Uuid(), Uuid stop=Uuid()) { - return Status(ProtocolVersion(), 0, active, start, state, stop); + return Status(ProtocolVersion(), 0, active, start, state, stop, 0); } QPID_AUTO_TEST_CASE(testFirstInCluster) { @@ -241,7 +241,6 @@ QPID_AUTO_TEST_CASE(testEmptyAlone) { } // FIXME aconway 2009-11-20: consistency tests for mixed stores, -// tests for manual intervention case. QPID_AUTO_TEST_SUITE_END() |