]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: make image replayer asok commands available when not started
authorMykola Golub <mgolub@mirantis.com>
Thu, 28 Apr 2016 06:23:35 +0000 (09:23 +0300)
committerJason Dillaman <dillaman@redhat.com>
Tue, 10 May 2016 17:05:14 +0000 (13:05 -0400)
commitd73073a400807f2aa62d0eadc8ff6a8537ca04fa
treebd3dfd80dc3908ceb662d1dc210abb42aecb0ccd
parent24ea574a94c009d64d480bc3f887d4b0325d26d8
rbd-mirror: make image replayer asok commands available when not started

Initially the asok commands were registered only after the image
replayer start (and unregistered on stop) because their names were
built using remote pool and image names, which became known only after
start.

Now, the asok commands are registered on the image replayer construction
using the temporary name "remote_pool_name/global_image_id". They are
re-registered using "remote_pool_name/remote_image_name" when the
image replayer is started.  Also the commands are not unregistered on
the image replayer stop.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 21790484dc66e97e7625b5b2afabb7efe3a92b08)
qa/workunits/rbd/rbd_mirror.sh
src/tools/rbd_mirror/ImageReplayer.cc