]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Remove filestore_inject_stall
authorHaomai Wang <haomaiwang@gmail.com>
Fri, 21 Feb 2014 14:14:52 +0000 (22:14 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Sat, 22 Feb 2014 13:05:01 +0000 (21:05 +0800)
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
src/os/KeyValueStore.cc

index 7156044f162d5d07237f01d42e8f507744635abe..fe92e9633822fe79e1e6f68dfa57861f735e38f8 100644 (file)
@@ -1065,16 +1065,6 @@ void KeyValueStore::op_queue_release_throttle(Op *o)
 
 void KeyValueStore::_do_op(OpSequencer *osr, ThreadPool::TPHandle &handle)
 {
-  // inject a stall?
-  if (g_conf->filestore_inject_stall) {
-    int orig = g_conf->filestore_inject_stall;
-    dout(5) << "_do_op filestore_inject_stall " << orig << ", sleeping" << dendl;
-    for (int n = 0; n < g_conf->filestore_inject_stall; n++)
-      sleep(1);
-    g_conf->set_val("filestore_inject_stall", "0");
-    dout(5) << "_do_op done stalling" << dendl;
-  }
-
   // FIXME: Suppose the collection of transaction only affect objects in the
   // one PG, so this lock will ensure no other concurrent write operation
   osr->apply_lock.Lock();