From 6cece53d5f960698e4189b0b9aabbb2e1c53b0c8 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Fri, 30 Sep 2016 13:58:15 +0800 Subject: [PATCH] os/bluestore: kill struct DeferredCsum Which is dead, and kill some other dead lines too. Signed-off-by: xie xingguo --- src/os/bluestore/BlueStore.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 8e3b56198060..25ad44ec16a3 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -1071,7 +1071,6 @@ public: void encode(bufferlist& bl) { for (size_t i = 0; i < STATFS_LAST; i++) { - //::encode(ceph_le64(values[i]), bl); ::encode(values[i], bl); } } @@ -1088,15 +1087,6 @@ public: uint64_t last_nid = 0; ///< if non-zero, highest new nid we allocated uint64_t last_blobid = 0; ///< if non-zero, highest new blobid we allocated - struct DeferredCsum { - BlobRef blob; - uint64_t b_off; - bufferlist data; - - DeferredCsum(BlobRef& b, uint64_t bo, bufferlist& bl) - : blob(b), b_off(bo), data(bl) {} - }; - explicit TransContext(OpSequencer *o) : state(STATE_PREPARE), osr(o), @@ -1108,11 +1098,9 @@ public: wal_txn(NULL), ioc(this), start(ceph_clock_now(g_ceph_context)) { - //cout << "txc new " << this << std::endl; } ~TransContext() { delete wal_txn; - //cout << "txc del " << this << std::endl; } void write_onode(OnodeRef &o) { -- 2.47.3