]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: don't assume pending pg removals have flushed
authorSamuel Just <sam.just@inktank.com>
Mon, 7 May 2012 18:32:59 +0000 (11:32 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 5 Jul 2012 17:14:59 +0000 (10:14 -0700)
_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>
src/osd/OSD.cc

index 9284eb08f6fa0e8c9bbbf0b66e75031238588917..b509b6e6d85a930fe081b60127891e91f180f854 100644 (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) {