]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueStore: remove unused code. 16522/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 25 Jul 2017 23:03:51 +0000 (07:03 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 25 Jul 2017 23:03:51 +0000 (07:03 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 99f1189e5a59eb65e53f7d41a0a17273604b1cda..02a037cc9ad6d1768ab2c9ff3f9f8cd2a4d1cfb1 100644 (file)
@@ -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<coll_t>::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<OnodeRef> ovec(i.objects.size());
 
index 890475ead81910258b829f1e624e01d81204d2b5..06a5418a64bf9e835765802db9f7ddeaa4de2952 100644 (file)
@@ -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;