Skip to content

Commit 2f5982b

Browse files
cyx1231stmyoungwon
authored andcommitted
crimson/os/seastore: handle log_root in _rename
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
1 parent 68e6227 commit 2f5982b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/crimson/os/seastore/seastore.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,6 +2036,8 @@ SeaStore::Shard::_rename(
20362036
d_onode->get_metadata_hint(device->get_block_size()));
20372037
auto xattr_root = olayout.xattr_root.get(
20382038
d_onode->get_metadata_hint(device->get_block_size()));
2039+
auto log_root = olayout.log_root.get(
2040+
d_onode->get_metadata_hint(device->get_block_size()));
20392041
auto object_data = olayout.object_data.get();
20402042
auto oi_bl = ceph::bufferlist::static_from_mem(
20412043
&olayout.oi[0],
@@ -2047,6 +2049,7 @@ SeaStore::Shard::_rename(
20472049
d_onode->update_onode_size(*ctx.transaction, size);
20482050
d_onode->update_omap_root(*ctx.transaction, omap_root);
20492051
d_onode->update_xattr_root(*ctx.transaction, xattr_root);
2052+
d_onode->update_log_root(*ctx.transaction, log_root);
20502053
d_onode->update_object_data(*ctx.transaction, object_data);
20512054
d_onode->update_object_info(*ctx.transaction, oi_bl);
20522055
d_onode->update_snapset(*ctx.transaction, ss_bl);

0 commit comments

Comments
 (0)