From 8a77c88000b154ea231488680f299ee78131603e Mon Sep 17 00:00:00 2001 From: olivertang Date: Fri, 28 Jan 2022 14:27:09 +0800 Subject: [PATCH] BATCH_GET:change a little --- src/test/function_test/test_batch_get.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/function_test/test_batch_get.cpp b/src/test/function_test/test_batch_get.cpp index 5233e3a038b..51d4e406ce9 100644 --- a/src/test/function_test/test_batch_get.cpp +++ b/src/test/function_test/test_batch_get.cpp @@ -71,7 +71,7 @@ TEST(batch_get, set_and_then_batch_get) one_full_key.hash_key.assign(hash_key.c_str(), 0, hash_key.size()); one_full_key.__isset.sort_key = true; one_full_key.sort_key.assign(sort_key.c_str(), 0, sort_key.size()); - batch_request.keys.emplace_back(one_full_key); + batch_request.keys.emplace_back(std::move(one_full_key)); key_pair_list.emplace_back(std::move(hash_key), std::move(sort_key)); value_list.push_back(std::move(value));