From 215c8eb5ac9dfc0cafd9ab51ed54c3305d72d1af Mon Sep 17 00:00:00 2001 From: liucc1997 <1192520566@qq.com> Date: Tue, 29 Oct 2024 19:47:23 +0000 Subject: [PATCH] [CP] set ret to OB_ALLOCATE_MEMORY_FAILED when mem_context created failed --- deps/oblib/src/lib/thread/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/oblib/src/lib/thread/thread.cpp b/deps/oblib/src/lib/thread/thread.cpp index 253bfd63a..c846b2ae8 100644 --- a/deps/oblib/src/lib/thread/thread.cpp +++ b/deps/oblib/src/lib/thread/thread.cpp @@ -318,7 +318,7 @@ void* Thread::__th_start(void *arg) ObPageManager::set_thread_local_instance(pm); MemoryContext *mem_context = GET_TSI0(MemoryContext); if (OB_ISNULL(mem_context)) { - ret = OB_ERR_UNEXPECTED; + ret = OB_ALLOCATE_MEMORY_FAILED; LOG_ERROR("null ptr", K(ret)); } else if (OB_FAIL(ROOT_CONTEXT->CREATE_CONTEXT(*mem_context, ContextParam().set_properties(RETURN_MALLOC_DEFAULT)