From fa70d54091a605355a53fe22466285ff6b2916e4 Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 4 Jul 2022 10:10:58 +0800 Subject: [PATCH] [CP] Fix error code with incorrect semantics --- src/sql/plan_cache/ob_ps_sql_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/plan_cache/ob_ps_sql_utils.h b/src/sql/plan_cache/ob_ps_sql_utils.h index e186e4195c..667a5687d1 100644 --- a/src/sql/plan_cache/ob_ps_sql_utils.h +++ b/src/sql/plan_cache/ob_ps_sql_utils.h @@ -51,7 +51,7 @@ int ObPsSqlUtils::alloc_new_var(common::ObIAllocator& allocator, const T& t, T*& const int64_t size = cv_size + sizeof(common::ObDataBuffer); char* buf = static_cast(allocator.alloc(size)); if (OB_ISNULL(buf)) { - ret = common::OB_INVALID_ARGUMENT; + ret = common::OB_ALLOCATE_MEMORY_FAILED; SQL_PC_LOG(WARN, "failed to alloc memory"); } else { data_buf = new (buf + sizeof(T)) common::ObDataBuffer( -- GitLab