mirror of
https://github.com/ceph/ceph
synced 2025-02-19 00:47:49 +00:00
Merge pull request #3156 from athanatos/wip-10150
ReplicatedPG::scan_range: an object can disappear between the list and t... Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
69507e51b5
@ -10977,6 +10977,14 @@ void ReplicatedPG::scan_range(
|
||||
} else {
|
||||
bufferlist bl;
|
||||
int r = pgbackend->objects_get_attr(*p, OI_ATTR, &bl);
|
||||
|
||||
/* If the object does not exist here, it must have been removed
|
||||
* between the collection_list_partial and here. This can happen
|
||||
* for the first item in the range, which is usually last_backfill.
|
||||
*/
|
||||
if (r == -ENOENT)
|
||||
continue;
|
||||
|
||||
assert(r >= 0);
|
||||
object_info_t oi(bl);
|
||||
bi->objects[*p] = oi.version;
|
||||
|
Loading…
Reference in New Issue
Block a user