]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore: next_finish is not used
authorSamuel Just <sam.just@inktank.com>
Wed, 17 Oct 2012 20:06:51 +0000 (13:06 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 30 Oct 2012 20:31:09 +0000 (13:31 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FileStore.cc
src/os/FileStore.h

index 94dbee9ed32c334ccb16955d3054c0dfae8b593e..cd579ce92fb6ae94819f2c170b79c24c34db1f27 100644 (file)
@@ -729,7 +729,7 @@ FileStore::FileStore(const std::string &base, const std::string &jdev, const cha
   timer(g_ceph_context, sync_entry_timeo_lock),
   stop(false), sync_thread(this),
   default_osr("default"),
-  op_queue_len(0), op_queue_bytes(0), op_finisher(g_ceph_context), next_finish(0),
+  op_queue_len(0), op_queue_bytes(0), op_finisher(g_ceph_context),
   op_tp(g_ceph_context, "FileStore::op_tp", g_conf->filestore_op_threads, "filestore_op_threads"),
   op_wq(this, g_conf->filestore_op_thread_timeout,
        g_conf->filestore_op_thread_suicide_timeout, &op_tp),
@@ -2220,9 +2220,6 @@ FileStore::Op *FileStore::build_op(list<Transaction*>& tls,
 void FileStore::queue_op(OpSequencer *osr, Op *o)
 {
   assert(journal_lock.is_locked());
-  // initialize next_finish on first op
-  if (next_finish == 0)
-    next_finish = op_seq;
 
   // mark apply start _now_, because we need to drain the entire apply
   // queue during commit in order to put the store in a consistent
index 4c9e8f151da6a424fd47b4eb77041a4b85be77f9..b69415dbb1ada1b3f5e94424a8f3ba4de9bc487d 100644 (file)
@@ -205,7 +205,6 @@ private:
   uint64_t op_queue_len, op_queue_bytes;
   Cond op_throttle_cond;
   Finisher op_finisher;
-  uint64_t next_finish;
 
   ThreadPool op_tp;
   struct OpWQ : public ThreadPool::WorkQueue<OpSequencer> {