From bb5ee12ec091782ebdc2ae77dbffd45100b95936 Mon Sep 17 00:00:00 2001 From: Chen Zhao Date: Tue, 4 Nov 2025 15:43:27 +0800 Subject: [PATCH] fix --- data_store_service_client.cpp | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/data_store_service_client.cpp b/data_store_service_client.cpp index cb5b647..dc2c8aa 100644 --- a/data_store_service_client.cpp +++ b/data_store_service_client.cpp @@ -19,6 +19,8 @@ * . * */ +#include "data_store_service_client.h" + #include #include @@ -34,7 +36,6 @@ #include #include "cc_req_misc.h" -#include "data_store_service_client.h" #include "data_store_service_client_closure.h" #include "data_store_service_config.h" #include "data_store_service_scanner.h" @@ -444,6 +445,11 @@ bool DataStoreServiceClient::PutAll( LOG(ERROR) << "PutAll failed for partition " << partition_state->partition_id << " with error: " << partition_state->result.error_msg(); + for (auto &callback_data : callback_data_list) + { + callback_data->Clear(); + callback_data->Free(); + } return false; } } @@ -4369,16 +4375,16 @@ void DataStoreServiceClient::UpsertTable(UpsertTableData *table_data) if (alter_table_info) { auto *new_table_schema = table_data->new_table_schema_; - ok = - ok && - std::all_of( - alter_table_info->index_add_names_.begin(), - alter_table_info->index_add_names_.end(), - [this, new_table_schema]( - const std::pair &p) { - return InitTableRanges(p.first, - new_table_schema->Version()); - }); + ok = ok && + std::all_of( + alter_table_info->index_add_names_.begin(), + alter_table_info->index_add_names_.end(), + [this, new_table_schema]( + const std::pair &p) + { + return InitTableRanges(p.first, + new_table_schema->Version()); + }); } // 3- Delete table statistics @@ -4752,4 +4758,4 @@ void DataStoreServiceClient::PrepareRangePartitionBatches( } } -} // namespace EloqD \ No newline at end of file +} // namespace EloqDS \ No newline at end of file