Skip to content

Commit 1eccade

Browse files
authored
Merge pull request ceph#60938 from joscollin/wip-fix-try-lock
cephfs_mirror: do not log the previous error Reviewed-by: Venky Shankar <[email protected]>
2 parents e91acb0 + 100d164 commit 1eccade

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
@@ -451,7 +451,8 @@ int PeerReplayer::try_lock_directory(const std::string &dir_root,
451451
<< dendl;
452452
}
453453

454-
if (ceph_close(m_remote_mount, fd) < 0) {
454+
r = ceph_close(m_remote_mount, fd);
455+
if (r < 0) {
455456
derr << ": failed to close (cleanup) remote dir_root=" << dir_root << ": "
456457
<< cpp_strerror(r) << dendl;
457458
}

0 commit comments

Comments
 (0)