]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs_mirror: increment sync_failures when sync_perms() and sync_snaps() fails 57437/head
authorJos Collin <jcollin@redhat.com>
Tue, 12 Mar 2024 06:07:18 +0000 (11:37 +0530)
committerJos Collin <jcollin@redhat.com>
Mon, 13 May 2024 10:17:28 +0000 (15:47 +0530)
commitdd8134f251fab4e5e7ae368babd6f01435e07e6c
treee6411264d87d56b5640d76d49bab25c4758c1b3a
parent2965081fb1a343a09e00ceeede998525f5c6cb5e
cephfs_mirror: increment sync_failures when sync_perms() and sync_snaps() fails

When sync_perms() fails  _inc_failed_count() is called for incrementing the failed count.
So it's better reflect that in the metrics too. Does the same for sync_snaps() too.

Fixes: https://tracker.ceph.com/issues/65345
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 57ec7c76344253322dd8013f6ceb6b59bbd96113)
src/tools/cephfs_mirror/PeerReplayer.cc
src/tools/cephfs_mirror/PeerReplayer.h