Skip to content

Commit e9dd7c5

Browse files
obdevgaopy3
authored andcommitted
ObPluginVectorIndexHelper using memory hard limit
Co-authored-by: gaopy3 <gao.panyu@qq.com>
1 parent f443e5a commit e9dd7c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/share/vector_index/ob_plugin_vector_index_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ int ObPluginVectorIndexHelper::get_vector_memory_limit_size(const uint64_t tenan
616616
memory_limit = 0;
617617
LOG_WARN("get invalid tenant config", K(tenant_id));
618618
} else {
619-
int64_t total_memory = lib::get_tenant_memory_limit(tenant_id);
619+
int64_t total_memory = lib::get_hard_memory_limit();
620620
int64_t vector_limit = ObTenantVectorAllocator::get_vector_mem_limit_percentage(tenant_config);
621621
memory_limit = total_memory * vector_limit / 100;
622622
LOG_TRACE("vector index memory limit debug", K(tenant_id), K(total_memory), K(vector_limit), K(memory_limit));

0 commit comments

Comments
 (0)