]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: instantiate the status formatter before changing state 24320/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:58:45 +0000 (09:58 +0200)
commitacba9dac57eede26f510efcdf94b36170a9e4d7b
tree2290371a3c2624c031c210c8cacb7cff14e0038b
parent1fdbedfc6a08ac9363ac6b3a3390cda1f877ed9e
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