summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/osd/PG.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osd/PG.cc b/src/osd/PG.cc
index 6526633b7d7..fc3f8c24b1f 100644
--- a/src/osd/PG.cc
+++ b/src/osd/PG.cc
@@ -2649,7 +2649,8 @@ void PG::read_state(ObjectStore *store, bufferlist &bl)
try {
ostringstream oss;
read_log(store, coll, log_oid, info, ondisklog, log, missing, oss, this);
- osd->clog.error() << oss;
+ if (oss.str().length())
+ osd->clog.error() << oss;
}
catch (const buffer::error &e) {
string cr_log_coll_name(get_corrupt_pg_log_name());