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 Sep 12, 2024
1 parent a3c7a11 commit cb3f4a7
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 cb3f4a7

Please sign in to comment.