Skip to content

Commit

Permalink
[exp] Avoid repeated arcswap load
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemitenkov committed Nov 6, 2024
1 parent 2774388 commit 0face5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aptos-move/block-executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,9 +618,9 @@ where
// Publish modules before we decrease validation index so that validations observe
// the new module writes as well.
if runtime_environment.vm_config().use_loader_v2 {
executed_at_commit = true;
let module_write_set = last_input_output.module_write_set(txn_idx);
if !module_write_set.is_empty() {
executed_at_commit = true;
Self::publish_module_writes(
txn_idx,
module_write_set,
Expand Down

0 comments on commit 0face5b

Please sign in to comment.