summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/StoreStatus.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-04-01 17:51:04 +0000
committerAlan Conway <aconway@apache.org>2010-04-01 17:51:04 +0000
commit01fac737f94afef33eee5eaa35df7833920c6ef2 (patch)
treedba3fcad81f4d1c2b4e8ea5ea53f119c26e03617 /qpid/cpp/src/tests/StoreStatus.cpp
parentb16d99f1de42e7e02cb0c09d83201a9c87275c83 (diff)
downloadqpid-python-01fac737f94afef33eee5eaa35df7833920c6ef2.tar.gz
Update cluster store status with a single atomic write() operation.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@930055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/StoreStatus.cpp')
-rw-r--r--qpid/cpp/src/tests/StoreStatus.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/StoreStatus.cpp b/qpid/cpp/src/tests/StoreStatus.cpp
index 87b3531236..43d4cfd920 100644
--- a/qpid/cpp/src/tests/StoreStatus.cpp
+++ b/qpid/cpp/src/tests/StoreStatus.cpp
@@ -65,7 +65,8 @@ QPID_AUTO_TEST_CASE(testSaveLoadDirty) {
Uuid clusterId = Uuid(true);
StoreStatus ss(TEST_DIR);
ss.load();
- ss.dirty(clusterId);
+ ss.setClusterId(clusterId);
+ ss.dirty();
BOOST_CHECK_EQUAL(ss.getState(), STORE_STATE_DIRTY_STORE);
StoreStatus ss2(TEST_DIR);
@@ -81,7 +82,7 @@ QPID_AUTO_TEST_CASE(testSaveLoadClean) {
Uuid shutdownId = Uuid(true);
StoreStatus ss(TEST_DIR);
ss.load();
- ss.dirty(clusterId);
+ ss.setClusterId(clusterId);
ss.clean(shutdownId);
BOOST_CHECK_EQUAL(ss.getState(), STORE_STATE_CLEAN_STORE);
@@ -99,9 +100,10 @@ QPID_AUTO_TEST_CASE(testMarkDirty) {
Uuid shutdownId = Uuid(true);
StoreStatus ss(TEST_DIR);
ss.load();
- ss.dirty(clusterId);
+ ss.setClusterId(clusterId);
+ ss.dirty();
ss.clean(shutdownId);
- ss.dirty(clusterId);
+ ss.dirty();
StoreStatus ss2(TEST_DIR);
ss2.load();