From: xie xingguo Date: Sat, 15 Oct 2016 02:50:03 +0000 (+0800) Subject: os/bluestore: formatting nits X-Git-Tag: v11.1.0~628^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f74c842909c7fbfdf7826eb945bcd8ceb9f411c;p=ceph.git os/bluestore: formatting nits Remove dupilicated semicolon, 80 chars etc. Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index aefa266ed219..eea0b0ed2e5f 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -8501,7 +8501,8 @@ int BlueStore::_do_clone_range( if (e.blob->get_blob().is_compressed()) { txc->statfs_delta.compressed_original() += ne->length; if (blob_duped){ - txc->statfs_delta.compressed() += cb->get_blob().get_compressed_payload_length();; + txc->statfs_delta.compressed() += + cb->get_blob().get_compressed_payload_length(); } } dout(20) << __func__ << " dst " << *ne << dendl; @@ -8569,24 +8570,28 @@ int BlueStore::_clone_range(TransContext *txc, * Once the move_info is traversed completely, delete the src object. */ int BlueStore::_move_ranges_destroy_src(TransContext *txc, - CollectionRef& c, - OnodeRef& srco, - OnodeRef& baseo, - const vector> move_info) + CollectionRef& c, + OnodeRef& srco, + OnodeRef& baseo, + const vector> move_info) { - dout(15) << __func__ << " " << c->cid << " " << srco->oid << " -> " << baseo->oid << dendl; + dout(15) << __func__ << " " << c->cid << " " + << srco->oid << " -> " << baseo->oid + << dendl; int r = 0; - //Traverse move_info completely, move contents from src object to base object. + // Traverse move_info completely, move contents from src object + // to base object. for (unsigned i = 0; i < move_info.size(); ++i) { uint64_t srcoff = move_info[i].get<0>(); uint64_t dstoff = move_info[i].get<1>(); uint64_t len = move_info[i].get<2>(); dout(15) << __func__ << " " << c->cid << " " << srco->oid << " -> " - << baseo->oid << " from 0x" << std::hex << srcoff << "~" << len - << " to offset 0x" << dstoff << std::dec << dendl; + << baseo->oid << " from 0x" << std::hex << srcoff << "~" << len + << " to offset 0x" << dstoff << std::dec + << dendl; r = _clone_range(txc, c, srco, baseo, srcoff, len, dstoff); if (r < 0) @@ -8709,12 +8714,11 @@ int BlueStore::_remove_collection(TransContext *txc, coll_t cid, vector ls; ghobject_t next; - //Enumerate onodes in db, up to nonexistent_count + 1 + // Enumerate onodes in db, up to nonexistent_count + 1 // then check if all of them are marked as non-existent. // Bypass the check if returned number is greater than nonexistent_count - r = _collection_list(c->get(), ghobject_t(), ghobject_t::get_max(), true, nonexistent_count + 1, - &ls, &next); - + r = _collection_list(c->get(), ghobject_t(), ghobject_t::get_max(), true, + nonexistent_count + 1, &ls, &next); if (r >= 0) { bool exists = false; //ls.size() > nonexistent_count; for (auto it = ls.begin(); !exists && it < ls.end(); ++it) {