]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs_mirror: Make PeerReplayer::m_stopping atomic
authorKotresh HR <khiremat@redhat.com>
Sun, 15 Feb 2026 03:09:54 +0000 (08:39 +0530)
committerKotresh HR <khiremat@redhat.com>
Sun, 22 Feb 2026 18:56:35 +0000 (00:26 +0530)
commit80f46b72808cbc65dbcd14f87750cf8a86216690
treebd1996787c28cb09b3e88c2828dd37997292dae8
parent3f4dea685a64183b310831e30825a555577ce422
tools/cephfs_mirror: Make PeerReplayer::m_stopping atomic

Make PeerReplayer::m_stopping as std::<atomic> and make it
independant of m_lock. This helps 'm_stopping' to be used
as predicate in any conditional wait which doesn't use
m_lock.

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