mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
OSD: don't assume pending pg removals have flushed
_create_lock_pg might encounter a preexisting pg collection simply because the removal transaction had not yet completed. Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
91355fb733
commit
3d32712e41
@ -1217,7 +1217,6 @@ PG *OSD::_create_lock_pg(pg_t pgid, bool newly_created, bool hold_map_lock,
|
||||
|
||||
PG *pg = _open_lock_pg(pgid, true, hold_map_lock);
|
||||
|
||||
assert(!store->collection_exists(coll_t(pgid)));
|
||||
t.create_collection(coll_t(pgid));
|
||||
|
||||
if (newly_created) {
|
||||
|
Loading…
Reference in New Issue
Block a user