summaryrefslogtreecommitdiff
path: root/qpid/cpp/include
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-11-24 20:07:24 +0000
committerAlan Conway <aconway@apache.org>2009-11-24 20:07:24 +0000
commita53255f11a8f8ee49aadec889981cea03934cc72 (patch)
tree680d2055af6297cfbf77e4eaa57f3c9f7d78f90d /qpid/cpp/include
parent892cfdf7c3578d27603c4ae4a54ac5aec101d521 (diff)
downloadqpid-python-a53255f11a8f8ee49aadec889981cea03934cc72.tar.gz
Support for restarting a persistent cluster.
Option --cluster-size=N: members wait for N members before recovering store. Stores marked as clean/dirty. Automatically recover from clean store on restart. Stores marked with UUID to detect errors. Not yet implemented: consistency checks, manual recovery from all dirty stores. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@883842 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
-rw-r--r--qpid/cpp/include/qpid/framing/Uuid.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/include/qpid/framing/Uuid.h b/qpid/cpp/include/qpid/framing/Uuid.h
index 618515622d..2cca6e9dfe 100644
--- a/qpid/cpp/include/qpid/framing/Uuid.h
+++ b/qpid/cpp/include/qpid/framing/Uuid.h
@@ -61,7 +61,9 @@ struct Uuid : public boost::array<uint8_t, 16> {
void clear();
/** Test for null (all zeros). */
- bool isNull();
+ bool isNull() const;
+ operator bool() const { return !isNull(); }
+ bool operator!() const { return isNull(); }
QPID_COMMON_EXTERN void encode(framing::Buffer& buf) const;
QPID_COMMON_EXTERN void decode(framing::Buffer& buf);