]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: instantiate the status formatter before changing state 24181/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 19 Sep 2018 18:24:31 +0000 (14:24 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Sep 2018 18:27:24 +0000 (14:27 -0400)
commitbbdc545ec1602f928c89c85d61c975abdf67be5b
tree2269becd54a775bb94e16c1911ec94bcbd0ea15d
parentc1bff2684fa2a194ea88f3c981df8b036105c857
rbd-mirror: instantiate the status formatter before changing state

This will avoid a possible race between pre-queued status updates
firing between the time the state has been changed and the formatter
has been instantiated.

Fixes: http://tracker.ceph.com/issues/36084
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/ImageReplayer.cc