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:
Samuel Just 2012-05-07 11:32:59 -07:00
parent 91355fb733
commit 3d32712e41

View File

@ -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) {