From 66084bcbe57e598b857edcfab669849b9c7ebc9d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 5 Aug 2013 19:33:35 +0000 Subject: QPID-4327: HA Handle brokers joining and leaving during a transaction. During a transaction: - A broker leaving aborts the transaction. - A broker joining does not participate in the transaction - but does receive the results of the TX via normal replication. Clean up tx-queues when the transaction completes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1510678 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/ha/Event.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cpp/src/qpid/ha/Event.cpp') diff --git a/cpp/src/qpid/ha/Event.cpp b/cpp/src/qpid/ha/Event.cpp index 25e7947267..8265a6edd3 100644 --- a/cpp/src/qpid/ha/Event.cpp +++ b/cpp/src/qpid/ha/Event.cpp @@ -44,13 +44,14 @@ bool isEventKey(const std::string& key) { const string DequeueEvent::KEY(QPID_HA+"de"); const string IdEvent::KEY(QPID_HA+"id"); -const string TxEnqueueEvent::KEY(QPID_HA+"txen"); -const string TxDequeueEvent::KEY(QPID_HA+"txde"); -const string TxPrepareEvent::KEY(QPID_HA+"txpr"); -const string TxCommitEvent::KEY(QPID_HA+"txcm"); +const string TxEnqueueEvent::KEY(QPID_HA+"txenq"); +const string TxDequeueEvent::KEY(QPID_HA+"txdeq"); +const string TxPrepareEvent::KEY(QPID_HA+"txpre"); +const string TxCommitEvent::KEY(QPID_HA+"txcom"); const string TxRollbackEvent::KEY(QPID_HA+"txrb"); const string TxPrepareOkEvent::KEY(QPID_HA+"txok"); const string TxPrepareFailEvent::KEY(QPID_HA+"txno"); +const string TxMembersEvent::KEY(QPID_HA+"txmem"); broker::Message makeMessage( const string& data, const string& destination, const string& routingKey) -- cgit v1.2.1