Skip to content

Commit

Permalink
journal: prevent repetitive error messages after being 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 15, 2016
1 parent 96d3039 commit 60f1b1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/journal/JournalMetadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,8 @@ void JournalMetadata::handle_watch_reset() {
if (r < 0) {
if (r == -ENOENT) {
ldout(m_cct, 5) << __func__ << ": journal header not found" << dendl;
} else if (r == -EBLACKLISTED) {
ldout(m_cct, 5) << __func__ << ": client blacklisted" << dendl;
} else {
lderr(m_cct) << __func__ << ": failed to watch journal: "
<< cpp_strerror(r) << dendl;
Expand All @@ -872,7 +874,7 @@ 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;
lderr(m_cct) << "journal watch error: client blacklisted" << dendl;
} else {
lderr(m_cct) << "journal watch error: " << cpp_strerror(err) << dendl;
}
Expand Down

0 comments on commit 60f1b1a

Please sign in to comment.