PG: just ignore rollbacks on objects we have already failed to rollback

The relevant changes to missing and/or the filestore will have
already been made.

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2014-02-06 17:26:24 -08:00
parent 0e7b10ac9b
commit d116e55f4a

View File

@ -664,7 +664,12 @@ public:
to_remove.insert(hoid);
}
void rollback(const pg_log_entry_t &entry) {
assert(!cannot_rollback.count(entry.soid));
if (cannot_rollback.count(entry.soid)) {
/* we already failed to rollback a previous item
* and made the appropriate adjustments to the
* missing set and/or store */
return;
}
to_rollback[entry.soid].push_back(entry);
}
void cant_rollback(const pg_log_entry_t &entry) {