[FEAT MERGE] Phase one of 3A project

Co-authored-by: rolandqi <qikai456@126.com>
Co-authored-by: yangzhifeng <yangzhifeng83@gmail.com>
This commit is contained in:
AntiTopQuark
2023-08-25 08:44:14 +00:00
committed by ob-robot
parent 56ee77a670
commit e0b1dda713
142 changed files with 15224 additions and 1314 deletions

View File

@ -390,7 +390,7 @@ int ObSequenceCache::nextval(const ObSequenceSchema &schema,
ObIAllocator &allocator, // 用于各种临时计算
ObSequenceValue &nextval)
{
ObActiveSessionGuard::get_stat().in_sequence_load_ = true;
ACTIVE_SESSION_FLAG_SETTER_GUARD(in_sequence_load);
int ret = OB_SUCCESS;
/* 1. if cache item not exist, create a obsolete cache item
* 2. read and lock cache item
@ -496,7 +496,6 @@ int ObSequenceCache::nextval(const ObSequenceSchema &schema,
if (nullptr != item) {
sequence_cache_.revert(item);
}
ObActiveSessionGuard::get_stat().in_sequence_load_ = false;
return ret;
}