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;
* 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)
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) {