]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: drop wal_op_onodes
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Nov 2016 07:10:13 +0000 (15:10 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 15 Nov 2016 07:10:13 +0000 (15:10 +0800)
Which is currently unused.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index b56201f078b1a9d7dc184ee821c389dc83092d94..a8c5d33408a43917b9d7784c03de789967338aaa 100644 (file)
@@ -6816,7 +6816,6 @@ bluestore_wal_op_t *BlueStore::_get_wal_op(TransContext *txc, OnodeRef o)
     txc->wal_txn = new bluestore_wal_transaction_t;
   }
   txc->wal_txn->ops.push_back(bluestore_wal_op_t());
-  txc->wal_op_onodes.push_back(o);
   return &txc->wal_txn->ops.back();
 }
 
@@ -6838,10 +6837,9 @@ int BlueStore::_wal_apply(TransContext *txc)
   }
 
   assert(txc->ioc.pending_aios.empty());
-  vector<OnodeRef>::iterator q = txc->wal_op_onodes.begin();
   for (list<bluestore_wal_op_t>::iterator p = wt.ops.begin();
        p != wt.ops.end();
-       ++p, ++q) {
+       ++p) {
     int r = _do_wal_op(txc, *p);
     assert(r == 0);
   }
index 65e38b81f22dbb8e6e3516c07d2e3de51f81e077..c99da688bff1b3a453632e24f255670c6ff52989 100644 (file)
@@ -1229,7 +1229,6 @@ public:
 
     boost::intrusive::list_member_hook<> wal_queue_item;
     bluestore_wal_transaction_t *wal_txn; ///< wal transaction (if any)
-    vector<OnodeRef> wal_op_onodes;
 
     bool kv_submitted = false; ///< true when we've been submitted to kv db