Skip to content

Commit 207e5a6

Browse files
committed
crimson/osd/ops_executor: use clone oi values in log entry
The fields from the clone_obc oi are what we're actually trying to fill in here -- we might as well use them directly. Signed-off-by: Samuel Just <[email protected]>
1 parent 1ecf3d6 commit 207e5a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/crimson/osd/ops_executer.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,10 +963,10 @@ std::unique_ptr<OpsExecuter::CloningContext> OpsExecuter::execute_clone(
963963
pg_log_entry_t::CLONE,
964964
coid,
965965
clone_obc->obs.oi.version,
966-
initial_obs.oi.version,
967-
initial_obs.oi.user_version,
966+
clone_obc->obs.oi.prior_version,
967+
clone_obc->obs.oi.user_version,
968968
osd_reqid_t(),
969-
initial_obs.oi.mtime, // will be replaced in `apply_to()`
969+
clone_obc->obs.oi.mtime, // will be replaced in `apply_to()`
970970
0
971971
};
972972
encode(cloned_snaps, cloning_ctx->log_entry.snaps);

0 commit comments

Comments
 (0)