]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/DispatchQueue: do not discard queued events on stop
authorSage Weil <sage@inktank.com>
Wed, 12 Jun 2013 02:27:01 +0000 (19:27 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 17:53:06 +0000 (10:53 -0700)
commitea6880f8a2d12d7de62c61feae9e55cf5d10c7af
tree8a901ab2c65c0e51b260ba4e9b5c2a4108bc4d69
parentde64bc50f27e463ebd3aec020d93f88174eedd28
msg/DispatchQueue: do not discard queued events on stop

When the shutdown/stop flag is set, continue to work through the queue.
Process events, but discard messages.  This avoids the loss of reset events
on shutdown that are necessary to clean up ref cycles.

Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/DispatchQueue.cc