]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
journal: avoid logging an error when a watch is blacklisted 12473/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 13 Dec 2016 19:40:23 +0000 (14:40 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 13 Dec 2016 19:40:23 +0000 (14:40 -0500)
Fixes: http://tracker.ceph.com/issues/18243
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/journal/JournalMetadata.cc

index 7b09586f5a825127496d28a03ee9ccfa085620ff..1745f261050e2e38a3a3bbe49f68ff12b74689de 100644 (file)
@@ -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;
   }