]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msgr: clear out the delay queue when stop()ing
authorGreg Farnum <greg@inktank.com>
Tue, 27 Nov 2012 17:44:19 +0000 (09:44 -0800)
committerSage Weil <sage@inktank.com>
Fri, 30 Nov 2012 00:09:44 +0000 (16:09 -0800)
commit01059e9b430d2f0b248deed57f014d7c0d6c1d37
treec867bd77fb4365f6420c61e92ce7e7b724875d0c
parent0e92f892047b907cb05ebfab11e121b21fa00813
msgr: clear out the delay queue when stop()ing

After some brief thought, I believe deleting any messages in the
delay queue is correct -- we are trying to simulate line delays
in delivery and so anything still in the queue has supposedly
not arrived yet. So delete them when we stop the Pipe for
any reason.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/msg/Pipe.cc