You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2011/06/07 14:45:19 UTC

svn commit: r1132982 - /activemq/activemq-apollo/trunk/apollo-bdb/src/main/scala/org/apache/activemq/apollo/broker/store/bdb/BDBClient.scala

Author: chirino
Date: Tue Jun  7 12:45:19 2011
New Revision: 1132982

URL: http://svn.apache.org/viewvc?rev=1132982&view=rev
Log:
Make sure we delete the queue entries when the queue is deleted.

Modified:
    activemq/activemq-apollo/trunk/apollo-bdb/src/main/scala/org/apache/activemq/apollo/broker/store/bdb/BDBClient.scala

Modified: activemq/activemq-apollo/trunk/apollo-bdb/src/main/scala/org/apache/activemq/apollo/broker/store/bdb/BDBClient.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-bdb/src/main/scala/org/apache/activemq/apollo/broker/store/bdb/BDBClient.scala?rev=1132982&r1=1132981&r2=1132982&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-bdb/src/main/scala/org/apache/activemq/apollo/broker/store/bdb/BDBClient.scala (original)
+++ activemq/activemq-apollo/trunk/apollo-bdb/src/main/scala/org/apache/activemq/apollo/broker/store/bdb/BDBClient.scala Tue Jun  7 12:45:19 2011
@@ -301,6 +301,7 @@ class BDBClient(store: BDBStore) {
         val current_key:(Long,Long)=key
         if( current_key._1 == queue_key ) {
           val queueEntry:QueueEntryRecord = value
+          entries_db.delete(tx, key)
           decrement_message_reference(ctx, queueEntry.message_key)
           true // keep cursoring..
         } else {