From b2f922a7350959a58c04ea3d866eca51f956c8f2 Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Wed, 26 Jul 2017 07:03:51 +0800 Subject: [PATCH] os/bluestore/BlueStore: remove unused code. Signed-off-by: Jianpeng Ma --- src/os/bluestore/BlueStore.cc | 8 -------- src/os/bluestore/BlueStore.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 99f1189e5a59e..02a037cc9ad6d 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -8011,7 +8011,6 @@ void BlueStore::_txc_finish(TransContext *txc) } OpSequencerRef osr = txc->osr; - CollectionRef c; bool empty = false; bool submit_deferred = false; OpSequencer::q_list_t releasing_txc; @@ -8036,9 +8035,6 @@ void BlueStore::_txc_finish(TransContext *txc) break; } - if (!c && txc->first_collection) { - c = txc->first_collection; - } osr->q.pop_front(); releasing_txc.push_back(*txc); notify = true; @@ -8853,10 +8849,6 @@ void BlueStore::_txc_add_transaction(TransContext *txc, Transaction *t) for (vector::iterator p = i.colls.begin(); p != i.colls.end(); ++p, ++j) { cvec[j] = _get_collection(*p); - - // note first collection we reference - if (!txc->first_collection) - txc->first_collection = cvec[j]; } vector ovec(i.objects.size()); diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 890475ead8191..06a5418a64bf9 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -1556,8 +1556,6 @@ public: IOContext ioc; bool had_ios = false; ///< true if we submitted IOs before our kv txn - CollectionRef first_collection; ///< first referenced collection - uint64_t seq = 0; utime_t start; utime_t last_stamp; -- 2.39.5