diff options
-rw-r--r-- | cpp/src/qpid/cluster/Connection.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index 2a831ae435..9ea79fa2b6 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -319,6 +319,11 @@ void Connection::deliveryRecord(const string& qname, if (completed) dr.complete(); if (ended) dr.setEnded(); // Exsitance of message semanticState().record(dr); // Part of the session's unacked list. + + // If the message was unacked, the newbie broker must place + // it in its messageStore. + if ( m.payload && m.payload->isPersistent() && !completed && !ended && !accepted && !cancelled ) + queue->enqueue ( 0, m.payload ); } void Connection::queuePosition(const string& qname, const SequenceNumber& position) { |