Skip to content

Commit 4792ef0

Browse files
obdevfootka
authored andcommitted
ivf build helper内存没有清理
Co-authored-by: footka <672528926@qq.com>
1 parent 3f16c57 commit 4792ef0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/storage/ddl/ob_ddl_pipeline.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,13 @@ void ObVectorIndexTabletContext::destroy_ivf_build_helper()
388388
{
389389
int ret = OB_SUCCESS;
390390
if (nullptr != helper_) {
391-
if (OB_FAIL(ObPluginVectorIndexUtils::release_vector_index_build_helper(helper_))) {
392-
LOG_ERROR("fail to release vector index adapter", KR(ret));
391+
ObIAllocator *allocator = helper_->get_allocator();
392+
if (OB_ISNULL(allocator)) {
393+
ret = OB_ERR_UNEXPECTED;
394+
LOG_WARN("null allocator", K(ret));
395+
} else {
396+
helper_->~ObIvfBuildHelper();
397+
allocator->free(helper_);
393398
}
394399
helper_ = nullptr;
395400
}

0 commit comments

Comments
 (0)