summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys/ClusterSafe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/sys/ClusterSafe.cpp')
-rw-r--r--cpp/src/qpid/sys/ClusterSafe.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/sys/ClusterSafe.cpp b/cpp/src/qpid/sys/ClusterSafe.cpp
index 6105fc96c7..c6b527dfdf 100644
--- a/cpp/src/qpid/sys/ClusterSafe.cpp
+++ b/cpp/src/qpid/sys/ClusterSafe.cpp
@@ -43,14 +43,14 @@ void assertClusterSafe() {
}
}
-ClusterSafeScope::ClusterSafeScope() {
- assert(!inContext);
+ClusterSafeScope::ClusterSafeScope() {
+ save = inContext;
inContext = true;
}
ClusterSafeScope::~ClusterSafeScope() {
assert(inContext);
- inContext = false;
+ inContext = save;
}
void enableClusterSafe() { inCluster = true; }