]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: instantiate the status formatter before changing state 24321/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 19 Sep 2018 18:24:31 +0000 (14:24 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 28 Sep 2018 07:59:42 +0000 (09:59 +0200)
commitd94824544e4ec8d515eb220813fee6ed359bd27c
tree6e143505bc31074751b3239e441eacc52157dbf0
parent07fd505168b9251c8a04d6efaa3bf34a1b650490
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>
(cherry picked from commit bbdc545ec1602f928c89c85d61c975abdf67be5b)
src/tools/rbd_mirror/ImageReplayer.cc