We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f16c57 commit 4792ef0Copy full SHA for 4792ef0
1 file changed
src/storage/ddl/ob_ddl_pipeline.cpp
@@ -388,8 +388,13 @@ void ObVectorIndexTabletContext::destroy_ivf_build_helper()
388
{
389
int ret = OB_SUCCESS;
390
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));
+ ObIAllocator *allocator = helper_->get_allocator();
+ 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_);
398
}
399
helper_ = nullptr;
400
0 commit comments