Skip to content

Commit

Permalink
ensure that commit callback function is std::move'd
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Aug 9, 2024
1 parent 7c00526 commit b38dff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/concurrency_control/interface/termination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Status commit_body(Token const token, // NOLINT
}

// log callback
ti->set_commit_callback(callback); // NOLINT
ti->set_commit_callback(std::move(callback)); // NOLINT

Status rc{};
if (ti->get_tx_type() == transaction_options::transaction_type::SHORT) {
Expand Down

0 comments on commit b38dff0

Please sign in to comment.