From 4fc722afb9d51d7a507763f5ef41373d0dc53558 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Wed, 31 Mar 2010 09:09:54 -0700 Subject: [PATCH] msg: fix uses of MExportDirPrep destructor to use put() --- src/mds/Migrator.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc index 1cd6d432f2fd8..234ee7576f638 100644 --- a/src/mds/Migrator.cc +++ b/src/mds/Migrator.cc @@ -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(); } -- 2.39.5