mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
osd: clear INCONSISTENT if scrub detects no errors
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
b190875548
commit
1cfad2ea77
@ -3310,7 +3310,7 @@ void PG::scrub()
|
||||
ss << ", " << fixed << " fixed";
|
||||
osd->get_logclient()->log(errors ? LOG_ERROR:LOG_INFO, ss);
|
||||
|
||||
if (!(errors - fixed) && repair)
|
||||
if (errors == 0 || (repair && (errors - fixed) == 0))
|
||||
state_clear(PG_STATE_INCONSISTENT);
|
||||
state_clear(PG_STATE_REPAIR);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user