diff options
author | Alan Conway <aconway@apache.org> | 2010-06-22 18:13:35 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-06-22 18:13:35 +0000 |
commit | dfcf3677e34ee4c1aaabe9c3d39bdbceef7ece9a (patch) | |
tree | aa9e80ae68cc94d148101c806fb905f44f5254e1 /cpp/src/qpid/sys/ClusterSafe.cpp | |
parent | 943689bc77e922bc6589da53521e40aff5c7677b (diff) | |
download | qpid-python-dfcf3677e34ee4c1aaabe9c3d39bdbceef7ece9a.tar.gz |
Fix bad assertion introduced in prevoius commit r956882
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@956965 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/ClusterSafe.cpp')
-rw-r--r-- | cpp/src/qpid/sys/ClusterSafe.cpp | 6 |
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; } |