From: Jason Dillaman Date: Tue, 13 Dec 2016 19:40:23 +0000 (-0500) Subject: journal: avoid logging an error when a watch is blacklisted X-Git-Tag: v11.1.1~70^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12473%2Fhead;p=ceph.git journal: avoid logging an error when a watch is blacklisted Fixes: http://tracker.ceph.com/issues/18243 Signed-off-by: Jason Dillaman --- diff --git a/src/journal/JournalMetadata.cc b/src/journal/JournalMetadata.cc index 7b09586f5a82..1745f261050e 100644 --- a/src/journal/JournalMetadata.cc +++ b/src/journal/JournalMetadata.cc @@ -871,6 +871,8 @@ void JournalMetadata::handle_watch_notify(uint64_t notify_id, uint64_t cookie) { void JournalMetadata::handle_watch_error(int err) { if (err == -ENOTCONN) { ldout(m_cct, 5) << "journal watch error: header removed" << dendl; + } else if (err == -EBLACKLISTED) { + ldout(m_cct, 5) << "journal watch error: client blacklisted" << dendl; } else { lderr(m_cct) << "journal watch error: " << cpp_strerror(err) << dendl; }