qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r748339 - /qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h
Date Thu, 26 Feb 2009 22:33:40 GMT
Author: aconway
Date: Thu Feb 26 22:33:40 2009
New Revision: 748339

URL: http://svn.apache.org/viewvc?rev=748339&view=rev
Log:
Fix to avoid spinning if an exception is thrown in cluster::PollableQueue.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h

Modified: qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h?rev=748339&r1=748338&r2=748339&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/cluster/PollableQueue.h Thu Feb 26 22:33:40 2009
@@ -52,6 +52,8 @@
         }
         catch (const std::exception& e) {
             QPID_LOG(error, message << ": " << e.what());
+            values.clear();
+            this->stop();
             error();
         }
     }



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


Mime
View raw message