qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r891886 - /qpid/trunk/qpid/cpp/src/qpid/client/MessageReplayTracker.cpp
Date Thu, 17 Dec 2009 20:45:07 GMT
Author: aconway
Date: Thu Dec 17 20:45:07 2009
New Revision: 891886

URL: http://svn.apache.org/viewvc?rev=891886&view=rev
Log:
QPID-2293:  MessageReplyTracker loses messages if an exception is thrown during replay

Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/MessageReplayTracker.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/MessageReplayTracker.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/MessageReplayTracker.cpp?rev=891886&r1=891885&r2=891886&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/MessageReplayTracker.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/MessageReplayTracker.cpp Thu Dec 17 20:45:07 2009
@@ -43,9 +43,7 @@
 void MessageReplayTracker::replay(AsyncSession s)
 {
     session = s;
-    std::list<ReplayRecord> copy; 
-    buffer.swap(copy);
-    std::for_each(copy.begin(), copy.end(), boost::bind(&ReplayRecord::send, _1, boost::ref(*this)));
+    std::for_each(buffer.begin(), buffer.end(), boost::bind(&ReplayRecord::send, _1,
boost::ref(*this)));
     session.flush();
     count = 0;
 }



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


Mime
View raw message