mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
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:
parent
0e7b10ac9b
commit
d116e55f4a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user