]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: write (empty) log, bounds on remove_pg start
authorSage Weil <sage@newdream.net>
Wed, 11 Aug 2010 17:05:18 +0000 (10:05 -0700)
committerSage Weil <sage@newdream.net>
Wed, 11 Aug 2010 17:05:18 +0000 (10:05 -0700)
This zeros the log, and the bounds, when we start pg removal.  Previously
we just removed the log and didn't write the (empty) bounds, breaking
cosd startup later when the old bounds are totally wrong.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSD.cc

index d025cb9dee5dee46649061a096f5f52730dd0092..edc939c74d278a803f1ad373b02988ff145e4d6d 100644 (file)
@@ -3974,7 +3974,7 @@ void OSD::_remove_pg(PG *pg)
   {
     ObjectStore::Transaction *t = new ObjectStore::Transaction;
     pg->write_info(*t);
-    t->remove(meta_coll, pg->log_oid);
+    pg->write_log(*t);
     int tr = store->queue_transaction(&pg->osr, t);
     assert(tr == 0);
   }