From: Ning Yao Date: Tue, 30 Dec 2014 10:53:21 +0000 (+0000) Subject: KeyValueStore:: do_transactions: clean up code which is never used X-Git-Tag: v0.92~86^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cef7a82584eb12f25c3c48f1f208bd245ca969e8;p=ceph.git KeyValueStore:: do_transactions: clean up code which is never used clean up ops and bytes which is never used in do_transactions() Signed-off-by: Ning Yao --- diff --git a/src/os/KeyValueStore.cc b/src/os/KeyValueStore.cc index 3603c1e75f22..91cbcad2da97 100644 --- a/src/os/KeyValueStore.cc +++ b/src/os/KeyValueStore.cc @@ -1159,15 +1159,6 @@ int KeyValueStore::_do_transactions(list &tls, uint64_t op_seq, ThreadPool::TPHandle *handle) { int r = 0; - - uint64_t bytes = 0, ops = 0; - for (list::iterator p = tls.begin(); - p != tls.end(); - ++p) { - bytes += (*p)->get_num_bytes(); - ops += (*p)->get_num_ops(); - } - int trans_num = 0; BufferTransaction bt(this);