mirror of
https://github.com/ceph/ceph
synced 2025-01-12 14:10:27 +00:00
rbd-mirror: fixed infinite loop when disabling image mirroringReviewed-by: Jason Dillaman <dillaman@redhat.com>
librbd: fixed infinite loop when disabling image mirroring
This commit is contained in:
commit
b1bc14680c
@ -341,6 +341,7 @@ int mirror_image_disable_internal(ImageCtx *ictx, bool force) {
|
||||
header_oid = ::journal::Journaler::header_oid(ictx->id);
|
||||
|
||||
while(true) {
|
||||
clients.clear();
|
||||
r = cls::journal::client::client_list(ictx->md_ctx, header_oid, &clients);
|
||||
if (r < 0) {
|
||||
lderr(cct) << "cannot disable mirroring: " << cpp_strerror(r) << dendl;
|
||||
|
Loading…
Reference in New Issue
Block a user