Skip to content

Commit

Permalink
journal: avoid logging an error when a watch is blacklisted
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/18243
Signed-off-by: Jason Dillaman <[email protected]>
  • Loading branch information
Jason Dillaman committed Dec 13, 2016
1 parent c6198c3 commit b82a1c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/journal/JournalMetadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b82a1c1

Please sign in to comment.