From b82a1c1d1fc43e13aa6e76f5468f43a1f779f7fa Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 13 Dec 2016 14:40:23 -0500 Subject: [PATCH] journal: avoid logging an error when a watch is blacklisted Fixes: http://tracker.ceph.com/issues/18243 Signed-off-by: Jason Dillaman --- src/journal/JournalMetadata.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/journal/JournalMetadata.cc b/src/journal/JournalMetadata.cc index 7b09586f5a825..1745f261050e2 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; } -- 2.39.5