qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1070481 - /qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp
Date Mon, 14 Feb 2011 13:09:18 GMT
Author: gsim
Date: Mon Feb 14 13:09:17 2011
New Revision: 1070481

URL: http://svn.apache.org/viewvc?rev=1070481&view=rev
Log:
QPID-3040: Prevent race between receipt and release of messages causing intermittent test
failures.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp?rev=1070481&r1=1070480&r2=1070481&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ReceiverImpl.cpp Mon Feb 14 13:09:17 2011
@@ -193,7 +193,7 @@ void ReceiverImpl::closeImpl()
     sys::Mutex::ScopedLock l(lock);
     if (state != CANCELLED) {
         state = CANCELLED;
-        session.messageStop(destination);
+        sync(session).messageStop(destination);
         parent->releasePending(destination);
         source->cancel(session, destination);
         parent->receiverCancelled(destination);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message