From: xie xingguo Date: Fri, 30 Sep 2016 05:58:15 +0000 (+0800) Subject: os/bluestore: kill struct DeferredCsum X-Git-Tag: v11.0.1~57^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6cece53d5f960698e4189b0b9aabbb2e1c53b0c8;p=ceph.git os/bluestore: kill struct DeferredCsum Which is dead, and kill some other dead lines too. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index 8e3b5619806..25ad44ec16a 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) {