提交 b90cdf32 编写于 作者: J JLY2015 提交者: ob-robot

[vector index] fix async task slice info memory leak

上级 ac25503a
......@@ -894,6 +894,7 @@ int ObPluginVectorIndexService::release_vector_index_tmp_info(const int64_t task
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected nullptr", K(ret), K(task_id), K(tmp_info));
} else {
tmp_info->reset();
tmp_info->~ObVectorIndexTmpInfo();
allocator_.free(tmp_info);
tmp_info = nullptr;
......
......@@ -320,6 +320,7 @@ struct ObVectorIndexTmpInfo final
public:
ObVectorIndexTmpInfo() : snapshot_version_(0), schema_version_(0), ret_code_(OB_NOT_INIT), ddl_slice_info_(), adapter_(nullptr) {}
~ObVectorIndexTmpInfo() {}
void reset() { ddl_slice_info_.reset(); }
TO_STRING_KV(K_(ddl_slice_info), KP_(adapter), K_(snapshot_version), K_(schema_version), K_(ret_code));
public:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册