]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd_mirror: avoid rescans in busy loop to detect new snapshots
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Tue, 4 Mar 2025 14:26:33 +0000 (19:56 +0530)
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 24 Apr 2025 15:56:32 +0000 (21:26 +0530)
commit759b521bc679be1059acebca19eb23c59f173949
tree9f7ab1e5d7476b76d57c18a1d1538e382b34f7db
parent824d4ce0e92697d224cc2ff144c2d4052be2aaf3
rbd_mirror: avoid rescans in busy loop to detect new snapshots

Instead move the state to STATE_IDLE once the snapshot limits cannot be met
and move back to STATE_REPLAYING on a call from group_replayer to
set_remote_snap_id_end_limit()

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.cc
src/tools/rbd_mirror/image_replayer/snapshot/Replayer.h