]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
tools/cephfs_mirror: Add SyncMechanism Queue
authorKotresh HR <khiremat@redhat.com>
Wed, 14 Jan 2026 08:47:07 +0000 (14:17 +0530)
committerKotresh HR <khiremat@redhat.com>
Sat, 21 Feb 2026 07:34:25 +0000 (13:04 +0530)
commit7234f1dcd97eb485dff4d94c32772f843364f728
tree62fe1f796a5c49d346837ea60db94ec794062c9e
parente768a9cf526e801cb84a40c266ff182a1f1d1d5f
tools/cephfs_mirror: Add SyncMechanism Queue

Add a queue of shared_ptr of type SyncMechanism.
Since it's shared_ptr, the queue can hold both
shared_ptr to both RemoteSync and SnapDiffSync objects.
Each SyncMechanism holds the queue for the SyncEntry
items to be synced using the data sync threads.

The SyncMechanism queue needs to be shared_ptr because
all the data sync threads needs to access the object
of SyncMechanism to process the SyncEntry Queue.

This patch sets up the building blocks for the same.

Fixes: https://tracker.ceph.com/issues/73452
Signed-off-by: Kotresh HR <khiremat@redhat.com>
src/tools/cephfs_mirror/PeerReplayer.cc
src/tools/cephfs_mirror/PeerReplayer.h