| 1441 | |
| 1442 | |
| 1443 | void CInode::_commit_ops(int r, C_GatherBuilder &gather_bld, |
| 1444 | std::vector<CInodeCommitOperation> &ops_vec, |
| 1445 | inode_backtrace_t &bt) |
| 1446 | { |
| 1447 | dout(10) << __func__ << dendl; |
| 1448 | |
| 1449 | if (r < 0) { |
| 1450 | mdcache->mds->handle_write_error_with_lock(r); |
| 1451 | return; |
| 1452 | } |
| 1453 | |
| 1454 | SnapContext snapc; |
| 1455 | object_t oid = get_object_name(ino(), frag_t(), ""); |
| 1456 | |
| 1457 | for (auto &op : ops_vec) { |
| 1458 | ObjectOperation obj_op; |
| 1459 | object_locator_t oloc(op.get_pool()); |
| 1460 | op.update(obj_op, bt); |
| 1461 | mdcache->mds->objecter->mutate(oid, oloc, obj_op, snapc, |
| 1462 | ceph::real_clock::now(), |
| 1463 | 0, gather_bld.new_sub()); |
| 1464 | } |
| 1465 | } |
| 1466 | |
| 1467 | void CInode::_store_backtrace(std::vector<CInodeCommitOperation> &ops_vec, |
| 1468 | inode_backtrace_t &bt, int op_prio, bool ignore_old_pools) |
no test coverage detected