From b38dff03edbcdd19705d815e309f9d92fe56cc96 Mon Sep 17 00:00:00 2001 From: Nobuhiro Ban Date: Tue, 9 Jul 2024 19:59:57 +0900 Subject: [PATCH] ensure that commit callback function is std::move'd --- src/concurrency_control/interface/termination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/concurrency_control/interface/termination.cpp b/src/concurrency_control/interface/termination.cpp index 179bfbc20..a67c2a529 100644 --- a/src/concurrency_control/interface/termination.cpp +++ b/src/concurrency_control/interface/termination.cpp @@ -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) {