Skip to content

Commit 100d164

Browse files
committed
cephfs_mirror: do not log the previous error
Signed-off-by: Jos Collin <[email protected]>
1 parent eb5cebc commit 100d164

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/cephfs_mirror/PeerReplayer.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@ int PeerReplayer::try_lock_directory(const std::string &dir_root,
447447
<< dendl;
448448
}
449449

450-
if (ceph_close(m_remote_mount, fd) < 0) {
450+
r = ceph_close(m_remote_mount, fd);
451+
if (r < 0) {
451452
derr << ": failed to close (cleanup) remote dir_root=" << dir_root << ": "
452453
<< cpp_strerror(r) << dendl;
453454
}

0 commit comments

Comments
 (0)