From: Jianpeng Ma Date: Tue, 25 Jul 2017 23:03:51 +0000 (+0800) Subject: os/bluestore/BlueStore: remove unused code. X-Git-Tag: v12.1.2~95^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F16522%2Fhead;p=ceph.git os/bluestore/BlueStore: remove unused code. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 99f1189e5a5..02a037cc9ad 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 890475ead81..06a5418a64b 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;