MCPcopy Create free account
hub / github.com/ceph/ceph / _commit_ops

Method _commit_ops

src/mds/CInode.cc:1443–1465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1441
1442
1443void 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
1467void CInode::_store_backtrace(std::vector<CInodeCommitOperation> &ops_vec,
1468 inode_backtrace_t &bt, int op_prio, bool ignore_old_pools)

Callers 1

finishMethod · 0.45

Calls 8

get_object_nameFunction · 0.85
frag_tClass · 0.85
nowFunction · 0.50
get_poolMethod · 0.45
updateMethod · 0.45
mutateMethod · 0.45
new_subMethod · 0.45

Tested by

no test coverage detected