]> 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 57436/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:13:35 +0000 (15:43 +0530)
commitfd397b32340c579a1c7557fae30d669af9a1b853
tree01234f8757ad36cd9079009bf98217b13debcb15
parentc3e55145f4f4b3a500bb66ee08c938a215bc231d
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