]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs-mirror: adjust PeerReplayer::cleanup_remote_dir() for purging any remote ...
authorVenky Shankar <vshankar@redhat.com>
Wed, 17 Mar 2021 12:11:59 +0000 (08:11 -0400)
committerVenky Shankar <vshankar@redhat.com>
Tue, 25 May 2021 12:44:43 +0000 (08:44 -0400)
commit78db1eb80be5c8b7185f01d50b2bbe57380afdee
tree873789df3a24303fa6d64352992f0536ffd3acf2
parent544abaf720002bcfb02c1d3b325697542d0a501e
cephfs-mirror: adjust PeerReplayer::cleanup_remote_dir() for purging any remote (sub)directory

Right now, the only path to cleanup (purge) is the remote file
system directory root (for configured snapshot directories).
With incremental sync, we would need the ability to cleanup
selective directories under configured snapshot directories.
Furthermore, the path passed to the function ise used to checking
if the mirror daemon needs to backoff due to mirroring being
disabled, daemon shutdown etc.

So, adjust the function prototype to accept the directory root
and the relative path to be cleaned up under this directory.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/tools/cephfs_mirror/PeerReplayer.cc
src/tools/cephfs_mirror/PeerReplayer.h