forked from vitalif/vitastor
Fix failed assert(!scrub_list_op) on OSD restart with pending scrubs
parent
aa5dacc7a9
commit
1c2df841c2
|
@ -115,6 +115,10 @@ int osd_t::pick_next_scrub(object_id & next_oid)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if (scrub_list_op)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
timespec tv_now;
|
timespec tv_now;
|
||||||
clock_gettime(CLOCK_REALTIME, &tv_now);
|
clock_gettime(CLOCK_REALTIME, &tv_now);
|
||||||
bool rescan = scrub_last_pg.pool_id != 0 || scrub_last_pg.pg_num != 0;
|
bool rescan = scrub_last_pg.pool_id != 0 || scrub_last_pg.pg_num != 0;
|
||||||
|
|
Loading…
Reference in New Issue