]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: fix uses of MExportDirPrep destructor to use put()
authorGreg Farnum <gregf@hq.newdream.net>
Wed, 31 Mar 2010 16:09:54 +0000 (09:09 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Wed, 31 Mar 2010 21:59:40 +0000 (14:59 -0700)
src/mds/Migrator.cc

index 1cd6d432f2fd847d6f7a4ec5ee61d06d3b31ea88..234ee7576f638d0fb987092b0d00ad42ce1ac66c 100644 (file)
@@ -1486,7 +1486,7 @@ void Migrator::handle_export_prep(MExportDirPrep *m)
        import_state[m->get_dirfrag()] != IMPORT_PREPPING) ||
       import_peer[m->get_dirfrag()] != oldauth) {
     dout(10) << "handle_export_prep import has aborted, dropping" << dendl;
-    delete m;
+    m->put();
     return;
   }
 
@@ -1635,7 +1635,7 @@ void Migrator::handle_export_prep(MExportDirPrep *m)
   import_state[dir->dirfrag()] = IMPORT_PREPPED;
   assert(g_conf.mds_kill_import_at != 4);
   // done 
-  delete m;
+  m->put();
 
 }