diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-08-24 15:07:32 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-08-24 15:07:32 +0300 |
commit | 558cd04f97890a2b80383f4b792beafde1721f73 (patch) | |
tree | bdaf2082cc02a532ba735da187ddb42c2ba1c734 | |
parent | 509e3a03d27f53b7abd4c6ed7cd07e0d2501f69b (diff) | |
download | ydb-558cd04f97890a2b80383f4b792beafde1721f73.tar.gz |
Fix memory leak and crash possibility in case of sync operation.
-rw-r--r-- | ydb/core/grpc_services/rpc_alter_table.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ydb/core/grpc_services/rpc_alter_table.cpp b/ydb/core/grpc_services/rpc_alter_table.cpp index 93a6f0c7926..78e773dcc67 100644 --- a/ydb/core/grpc_services/rpc_alter_table.cpp +++ b/ydb/core/grpc_services/rpc_alter_table.cpp @@ -412,6 +412,7 @@ private: if (status == Ydb::StatusIds::SUCCESS) { if (GetOperationMode() == Ydb::Operations::OperationParams::SYNC) { CreateSSOpSubscriber(SchemeshardId, TxId, DatabaseName, TOpType::BuildIndex, std::move(Request_), ctx); + Die(ctx); } else { auto op = response.GetIndexBuild(); Ydb::Operations::Operation operation; |