From 0fb7ff9cfbfd01e9093c2c6021a5915696d2a089 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 24 Nov 2009 20:07:24 +0000 Subject: 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/qpid@883842 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/framing/Uuid.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpp/include') diff --git a/cpp/include/qpid/framing/Uuid.h b/cpp/include/qpid/framing/Uuid.h index 618515622d..2cca6e9dfe 100644 --- a/cpp/include/qpid/framing/Uuid.h +++ b/cpp/include/qpid/framing/Uuid.h @@ -61,7 +61,9 @@ struct Uuid : public boost::array { 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); -- cgit v1.2.1