]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: formatting nits
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 15 Oct 2016 02:50:03 +0000 (10:50 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 15 Oct 2016 02:50:03 +0000 (10:50 +0800)
Remove dupilicated semicolon, 80 chars etc.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index aefa266ed21999749093fba4d14438920c26ad20..eea0b0ed2e5f664e61c576ef1033dce63b09ee84 100644 (file)
@@ -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<boost::tuple<uint64_t, uint64_t, uint64_t>> move_info)
+  CollectionRef& c,
+  OnodeRef& srco,
+  OnodeRef& baseo,
+  const vector<boost::tuple<uint64_t, uint64_t, uint64_t>> 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<ghobject_t> 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) {