]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: add mds_kill_create_at for testing 1283/head
authorJohn Spray <john.spray@inktank.com>
Mon, 24 Feb 2014 12:14:59 +0000 (12:14 +0000)
committerJohn Spray <john.spray@inktank.com>
Mon, 24 Feb 2014 12:14:59 +0000 (12:14 +0000)
Signed-off-by: John Spray <john.spray@inktank.com>
src/common/config_opts.h
src/mds/MDS.cc

index 28f4acf07e45ff649ff018bfba89fb2d89279bad..66a609f8c9ca807a64328a958cb5be89ad32bf0a 100644 (file)
@@ -364,6 +364,7 @@ OPTION(mds_kill_openc_at, OPT_INT, 0)
 OPTION(mds_kill_journal_at, OPT_INT, 0)
 OPTION(mds_kill_journal_expire_at, OPT_INT, 0)
 OPTION(mds_kill_journal_replay_at, OPT_INT, 0)
+OPTION(mds_kill_create_at, OPT_INT, 0)
 OPTION(mds_open_remote_link_mode, OPT_INT, 0)
 OPTION(mds_inject_traceless_reply_probability, OPT_DOUBLE, 0) /* percentage
                                of MDS modify replies to skip sending the
index c62b75fc190ee7330ac2cae6895f66ca5c6e5540..92c08d91f433f1dc6a9013f3b429c811c6bb9c29 100644 (file)
@@ -1187,7 +1187,7 @@ void MDS::boot_create()
 
   // write empty sessionmap
   sessionmap.save(fin.new_sub());
-  
+
   // initialize tables
   if (mdsmap->get_tableserver() == whoami) {
     dout(10) << "boot_create creating fresh anchortable" << dendl;
@@ -1201,6 +1201,8 @@ void MDS::boot_create()
     snapserver->handle_mds_recovery(whoami);
   }
 
+  assert(g_conf->mds_kill_create_at != 1);
+
   // ok now journal it
   mdlog->journal_segment_subtree_map();
   mdlog->wait_for_safe(fin.new_sub());