Skip to content

Commit

Permalink
Merge pull request ceph#58645 from vshankar/wip-omap-commit-header-size
Browse files Browse the repository at this point in the history
mds: account for header size during omap commit
  • Loading branch information
salieri11 authored Nov 22, 2024
2 parents d945a31 + 265e678 commit c06a9b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mds/CDir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2494,6 +2494,10 @@ void CDir::_omap_commit_ops(int r, int op_prio, int64_t metapool, version_t vers
mdcache->mds->heartbeat_reset();
}

// the last omap commit includes the omap header, so account for
// that size early on so that when we reach `commit_one(true)`,
// there is enough space for the header.
write_size += sizeof(fnode_t);
using ceph::encode;
for (auto &item : to_set) {
bufferlist bl;
Expand Down

0 comments on commit c06a9b5

Please sign in to comment.