summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-01-08 22:32:10 +0000
committerAlan Conway <aconway@apache.org>2009-01-08 22:32:10 +0000
commit5264684719f9550c6c6e113c86a4b8358a722eb0 (patch)
tree6bfa45d9981dcd944a825e9821b2f28fc4000c07 /qpid/cpp/src
parentae573f77177e80432ff7bbd02f66e85924db0f39 (diff)
downloadqpid-python-5264684719f9550c6c6e113c86a4b8358a722eb0.tar.gz
Fix for compatibility with latest corosync.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@732854 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/cluster/Cpg.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/qpid/cpp/src/qpid/cluster/Cpg.cpp b/qpid/cpp/src/qpid/cluster/Cpg.cpp
index 3b7e82a751..b002400cb3 100644
--- a/qpid/cpp/src/qpid/cluster/Cpg.cpp
+++ b/qpid/cpp/src/qpid/cluster/Cpg.cpp
@@ -141,21 +141,22 @@ void Cpg::dispatchBlocking() {
string Cpg::errorStr(cpg_error_t err, const std::string& msg) {
switch (err) {
case CPG_OK: return msg+": ok";
- case CPG_ERR_LIBRARY: return msg+": library error";
case CPG_ERR_TIMEOUT: return msg+": timeout";
- case CPG_ERR_TRY_AGAIN: return msg+": timeout.";
+ case CPG_ERR_TRY_AGAIN: return msg+": timeout. The aisexec daemon may not be running";
case CPG_ERR_INVALID_PARAM: return msg+": invalid param";
case CPG_ERR_NO_MEMORY: return msg+": no memory";
case CPG_ERR_BAD_HANDLE: return msg+": bad handle";
- case CPG_ERR_ACCESS: return msg+": access denied.";
+ case CPG_ERR_ACCESS: return msg+": access denied. You may need to set your group ID to 'ais'";
case CPG_ERR_NOT_EXIST: return msg+": not exist";
case CPG_ERR_EXIST: return msg+": exist";
case CPG_ERR_NOT_SUPPORTED: return msg+": not supported";
- case CPG_ERR_SECURITY: return msg+": security";
- case CPG_ERR_TOO_MANY_GROUPS: return msg+": too many groups";
+ // The following are not mapped, or are incorrectly mapped in corosync 0-92-5
+ // case CPG_ERR_LIBRARY: return msg+": library";
+ // case CPG_ERR_SECURITY: return msg+": security";
+ // case CPG_ERR_TOO_MANY_GROUPS: return msg+": too many groups";
+
default:
- assert(0);
- return ": unknown";
+ return ": cpg error";
};
}