From 85bc39cb22f4915b5b03547e21b05db53d582551 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 18 Jan 2010 16:28:17 +0000 Subject: QPID-2295: Clustered + persistent broker crashes with inconsistency error. Code running in the store's timer thread was causing inconsistent changes in message allocation. This code is out-of-date, we no longer need to notify the Queue when persistent storage completes as the message is already available on the queue. Removed the out-dated code. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@900448 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/PersistableMessage.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'cpp/src/qpid/broker/PersistableMessage.cpp') diff --git a/cpp/src/qpid/broker/PersistableMessage.cpp b/cpp/src/qpid/broker/PersistableMessage.cpp index 303a0501f4..76e9404b5d 100644 --- a/cpp/src/qpid/broker/PersistableMessage.cpp +++ b/cpp/src/qpid/broker/PersistableMessage.cpp @@ -83,16 +83,8 @@ void PersistableMessage::enqueueComplete() { } } } - if (notify) { + if (notify) allEnqueuesComplete(); - sys::ScopedLock l(storeLock); - if (store) { - for (syncList::iterator i = synclist.begin(); i != synclist.end(); ++i) { - PersistableQueue::shared_ptr q(i->lock()); - if (q) q->notifyDurableIOComplete(); - } - } - } } bool PersistableMessage::isStoredOnQueue(PersistableQueue::shared_ptr queue){ -- cgit v1.2.1