Skip to content

Commit 1684f01

Browse files
committed
cls/rbd: drop overzealous CLS_ERR message in mirror_remote_namespace_get()
Currently it unnecessarily floods the log of the OSD which hosts rbd_mirroring object with "No such file or directory" errors. Just drop it as read_key() already logs all errors except ENOENT. Credit to N Balachandran <[email protected]> for spotting this. Signed-off-by: Ilya Dryomov <[email protected]>
1 parent bef5780 commit 1684f01

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/cls/rbd/cls_rbd.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5938,8 +5938,6 @@ int mirror_remote_namespace_get(cls_method_context_t hctx, bufferlist *in,
59385938
std::string mirror_ns_decode;
59395939
int r = read_key(hctx, mirror::REMOTE_NAMESPACE, &mirror_ns_decode);
59405940
if (r < 0) {
5941-
CLS_ERR("error getting mirror remote namespace: %s",
5942-
cpp_strerror(r).c_str());
59435941
return r;
59445942
}
59455943

0 commit comments

Comments
 (0)