]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/.../ops_executer: rework prepare_transaction/mutate_object
authorSamuel Just <sjust@redhat.com>
Fri, 15 Nov 2024 02:08:10 +0000 (18:08 -0800)
committerSamuel Just <sjust@redhat.com>
Fri, 13 Dec 2024 20:32:26 +0000 (12:32 -0800)
commitff55c4f8737ed8a804e248433e412121437c9c8e
tree72233c41095145dfb7bdff5d830d2d2eedde4645
parentfc029270ef410f8520931bc7cf2fd867102fe979
crimson/.../ops_executer: rework prepare_transaction/mutate_object

That the log entry's verison matches the object_info on the actual
object is a pretty core invariant.  This commit moves creating the
log entry for head and populating the metadata into
OpsExecuter::prepare_head_update.

As a side effect, flush_clone_metadata and CloningCtx::apply_to
were removed and split between prepare_head_update (portions
related to the head's ssc) and flush_changes_and_submit.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/ops_executer.cc
src/crimson/osd/ops_executer.h
src/crimson/osd/pg.cc
src/crimson/osd/pg.h