]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs_mirror: do not log the previous error 60938/head
authorJos Collin <jcollin@redhat.com>
Wed, 4 Dec 2024 08:36:03 +0000 (14:06 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 4 Dec 2024 08:36:03 +0000 (14:06 +0530)
Signed-off-by: Jos Collin <jcollin@redhat.com>
src/tools/cephfs_mirror/PeerReplayer.cc

index 91117cf5f2b68d1f11fef33f2850aa492355a3e9..dc32aa868cb825ec5d9d89bf5862b05292615243 100644 (file)
@@ -447,7 +447,8 @@ int PeerReplayer::try_lock_directory(const std::string &dir_root,
            << dendl;
     }
 
-    if (ceph_close(m_remote_mount, fd) < 0) {
+    r = ceph_close(m_remote_mount, fd);
+    if (r < 0) {
       derr << ": failed to close (cleanup) remote dir_root=" << dir_root << ": "
            << cpp_strerror(r) << dendl;
     }