-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/21267/
-----------------------------------------------------------

(Updated May 12, 2014, 2:17 p.m.)


Review request for qpid, Alan Conway and Pavel Moravec.


Changes
-------

Use TimerTask::restart() instead of TimerTask::setupNextFire() as the former 
determines the time to fire based on current time whereas latter uses the last 
time of last firing. In other words this changes things to trigger a purge N 
seconds after the last purge completes, rather than triggering it every N 
seconds regardless of when the last purge completed. (If we want th latter 
behaviour, the setupNextFire() should be called in the fire() method.


Bugs: QPID-5758
    https://issues.apache.org/jira/browse/QPID-5758


Repository: qpid


Description
-------

Uses a PollableQueue to have queues purged by worker threads rather than doing 
it on the timer thread which may affect other tasks.


Diffs (updated)
-----

  /trunk/qpid/cpp/src/qpid/broker/Broker.cpp 1593267 
  /trunk/qpid/cpp/src/qpid/broker/QueueCleaner.h 1593267 
  /trunk/qpid/cpp/src/qpid/broker/QueueCleaner.cpp 1593267 
  /trunk/qpid/cpp/src/tests/QueueTest.cpp 1593267 

Diff: https://reviews.apache.org/r/21267/diff/


Testing
-------

make test passes; some manual testing of expiration also


Thanks,

Gordon Sim

Reply via email to