]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs_mirror: Add per-peer tick thread with configurable interval
authorKotresh HR <khiremat@redhat.com>
Tue, 16 Jun 2026 16:38:15 +0000 (22:08 +0530)
committerKotresh HR <khiremat@redhat.com>
Wed, 8 Jul 2026 07:10:06 +0000 (12:40 +0530)
commitbe881563f64656b0db4747bc77f906ac30b7e5cc
tree583896ba12cd9117caacebe28c1fa067a09b8f13
parentbbdd6ea85cfabcc60d384684951c277f8846ee4c
tools/cephfs_mirror: Add per-peer tick thread with configurable interval

Introduce a per-peer tick thread controlled by cephfs_mirror_tick_interval
(default 5 seconds). The interval is re-read each iteration so configuration
changes take effect without restarting the daemon. The thread provides a
generic hook for future periodic mirroring work.

Fixes: https://tracker.ceph.com/issues/76686
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit b8310f33c377b4c3e3f43026184f5fdd741f6a8e)
src/common/options/cephfs-mirror.yaml.in
src/tools/cephfs_mirror/PeerReplayer.cc
src/tools/cephfs_mirror/PeerReplayer.h