[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-dev
Subject:    [jira] [Created] (AMQ-4562) SimplePriorityMessageDispatchChannel.clear() needs to reset size attribu
From:       "Torsten Mielke (JIRA)" <jira () apache ! org>
Date:       2013-05-30 8:36:19
Message-ID: JIRA.12650104.1369902874991.40023.1369902979931 () arcas
[Download RAW message or body]

Torsten Mielke created AMQ-4562:
-----------------------------------

             Summary: SimplePriorityMessageDispatchChannel.clear() needs to reset \
size attribute  Key: AMQ-4562
                 URL: https://issues.apache.org/jira/browse/AMQ-4562
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.8.0
            Reporter: Torsten Mielke
            Assignee: Torsten Mielke


SimplePriorityMessageDispatchChannel.clear() deletes all prefetched messages but does \
not reset the size counter. The other method removeAll() does it correctly.

Propose to fix this as follows:

{code:title=SimplePriorityMessageDispatchChannel.java}
    public void clear() {
        synchronized (mutex) {
            for (int i = 0; i < MAX_PRIORITY; i++) {
                lists[i].clear();
            }
	    size = 0;
        }
    }
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic