]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd: don't clone ioctx before calling get_mirror_peer_sites()
authorIlya Dryomov <idryomov@gmail.com>
Tue, 11 Feb 2025 20:01:13 +0000 (21:01 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 14 Feb 2025 14:19:25 +0000 (15:19 +0100)
commit0d1bdaf3408df9766a7cbd22e143fefde17919c9
tree35d02bfbc200536e8870ced9f62cccebbd6f63d3
parent10b19719f32a68d4a66ddea8138e7eb749975800
rbd: don't clone ioctx before calling get_mirror_peer_sites()

get_mirror_peer_sites() transitions to the default namespace
internally, doing it in advance at the call sites is redundant.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 774016bd7639ab43a270faf66abb341e3afbff9c)
src/tools/rbd/action/MirrorImage.cc
src/tools/rbd/action/MirrorPool.cc