2 Replies Latest reply on Oct 20, 2008 11:39 AM by Clebert Suconic

    Strange (?) code in transactionimpl for paging

    Tim Fox Master

       

      // Putting back the size on pagingManager, and reverting the counters
      
      
       if (message.incrementReference(message.isDurable() && queue.isDurable()) == 1)
       {
       pagingManager.addSize(message);
       }
      


      I don't understand why this code is necessary. Surely paging happens *before* routing.

      So any cancellation shouldn't effect any counters. After all, after cancellation it doesn't get paged again, it's still routed.