qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1480389 - /qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp
Date Wed, 08 May 2013 18:22:19 GMT
Author: gsim
Date: Wed May  8 18:22:19 2013
New Revision: 1480389

URL: http://svn.apache.org/r1480389
Log:
QPID-3189: correct calculated queue depth if enqueue fails

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp?rev=1480389&r1=1480388&r2=1480389&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/Queue.cpp Wed May  8 18:22:19 2013
@@ -835,7 +835,12 @@ bool Queue::enqueue(TransactionContext* 
         boost::intrusive_ptr<PersistableMessage> pmsg = msg.getPersistentContext();
         assert(pmsg);
         pmsg->enqueueAsync(shared_from_this(), store);
-        store->enqueue(ctxt, pmsg, *this);
+        try {
+            store->enqueue(ctxt, pmsg, *this);
+        } catch (...) {
+            enqueueAborted(msg);
+            throw;
+        }
     }
     return true;
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message