]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
tools/cephfs_mirror: Fix data sync threads completion logic
authorKotresh HR <khiremat@redhat.com>
Sat, 21 Feb 2026 08:18:15 +0000 (13:48 +0530)
committerKotresh HR <khiremat@redhat.com>
Sat, 21 Feb 2026 08:18:15 +0000 (13:48 +0530)
commit5da0abc7d90f407589dbdf9cbe473ed83c541243
tree648b100d767e5c00b4d214ff7c6294bddca6e25a
parentaf83adb49966a82ff0fe775f3b6cbdd5030cc205
tools/cephfs_mirror: Fix data sync threads completion logic

We need to exactly know when all data threads completes
the processing of a syncm. If a few threads finishes the
job, they all need to wait for the in processing threads
of that syncm to complete. Otherwise the finished threads
would be busy loop until in processing threads finishes.

And only after all threads finishes processing, the crawler
thread can be notified to take the snapshot.

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