session not release to pool when load sys vars fail

This commit is contained in:
obdev
2022-11-02 19:40:51 +00:00
committed by wangzelin.wzl
parent e49ecdcc76
commit 88ec965bc2

View File

@ -973,6 +973,7 @@ int ObBasicSessionInfo::init_system_variables(const bool print_info_log, const b
} }
} }
} // end for } // end for
release_to_pool_ = OB_SUCC(ret);
if (OB_SUCC(ret)) { if (OB_SUCC(ret)) {
if (OB_FAIL(gen_sys_var_in_pc_str())) { //将影响plan的系统变量序列化并缓存 if (OB_FAIL(gen_sys_var_in_pc_str())) { //将影响plan的系统变量序列化并缓存
@ -4094,6 +4095,7 @@ int ObBasicSessionInfo::load_all_sys_vars(const ObSysVariableSchema &sys_var_sch
} }
} }
} }
release_to_pool_ = OB_SUCC(ret);
if (!is_deserialized_) { if (!is_deserialized_) {
OZ (gen_sys_var_in_pc_str()); OZ (gen_sys_var_in_pc_str());
} }