Merge pull request #2392 from majianpeng/fix1

FileStore: Remove unused code.

Reviewed-by: Loic Dachary <loic@dachary.org>
This commit is contained in:
Loic Dachary 2014-09-04 10:04:28 +02:00
commit 36554f90eb

View File

@ -1944,16 +1944,8 @@ int FileStore::_do_transactions(
ThreadPool::TPHandle *handle)
{
int r = 0;
uint64_t bytes = 0, ops = 0;
for (list<Transaction*>::iterator p = tls.begin();
p != tls.end();
++p) {
bytes += (*p)->get_num_bytes();
ops += (*p)->get_num_ops();
}
int trans_num = 0;
for (list<Transaction*>::iterator p = tls.begin();
p != tls.end();
++p, trans_num++) {