test_pg_chaos: Don't run deferred recovery checks on objects with an operation in flight #163
@@ -3891,6 +3891,13 @@ void chaos_t::flush_recover_pending()
|
||||
if (!pg_active())
|
||||
return;
|
||||
int obj = *it;
|
||||
// A read racing the model's own in-flight write may legally show both;
|
||||
// the object is checked again once the write completes
|
||||
if (busy[obj])
|
||||
{
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
if (check_recovered(obj, "an outage"))
|
||||
it = recover_pending.erase(it);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user