summaryrefslogtreecommitdiff
path: root/cpp/etc
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2013-02-25 20:08:15 +0000
committerAlan Conway <aconway@apache.org>2013-02-25 20:08:15 +0000
commitc1387aa47ec51604fa8664ebe4af370f7a6b67e3 (patch)
tree6864b75256d43be86f526bff2b1e820881a8d3cf /cpp/etc
parent3c09b0a8be811f899a57d62f26ab6bde3631b87f (diff)
downloadqpid-python-c1387aa47ec51604fa8664ebe4af370f7a6b67e3.tar.gz
QPID-4600: New HA regularly shutting down active node
qpid-primary script was incorrect and failing on status calls, causing the broker to be restarted by rgmanager. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1449870 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/etc')
-rwxr-xr-xcpp/etc/qpidd-primary.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/etc/qpidd-primary.in b/cpp/etc/qpidd-primary.in
index 39700bead3..da0c0c2771 100755
--- a/cpp/etc/qpidd-primary.in
+++ b/cpp/etc/qpidd-primary.in
@@ -57,7 +57,7 @@ if [[ !(-x $QPID_HA) ]]; then
fi
status() {
- if $QPID_HA -b localhost:$QPID_PORT status --expect=primary ; then
+ if $QPID_HA -b localhost:$QPID_PORT status --is-primary ; then
echo "qpidd is primary"
else
echo "qpidd is not primary"