}
*/
- ss << info.pgid << " " << mode << " ";
- if (errors)
- ss << errors << " errors";
- else
- ss << "ok";
- if (repair)
- ss << ", " << fixed << " fixed";
- osd->get_logclient()->log(errors ? LOG_ERROR:LOG_INFO, ss);
+ {
+ stringstream oss;
+ oss << info.pgid << " " << mode << " ";
+ if (errors)
+ oss << errors << " errors";
+ else
+ oss << "ok";
+ if (repair)
+ oss << ", " << fixed << " fixed";
+ oss << "\n";
+ if (errors)
+ osd->clog.error(oss);
+ else
+ osd->clog.info(oss);
+ }
- if (!(errors - fixed) && repair)
+ if (errors == 0 || (repair && (errors - fixed) == 0))
state_clear(PG_STATE_INCONSISTENT);
state_clear(PG_STATE_REPAIR);