[CP] fix forget setting error code

This commit is contained in:
Charles0429
2023-10-17 10:43:51 +00:00
committed by ob-robot
parent c508817d24
commit ed392d75cf

View File

@ -196,6 +196,7 @@ int ObTabletAutoincSeq::set_autoinc_seq_value(
intervals_count_ = 1; intervals_count_ = 1;
void *buf = nullptr; void *buf = nullptr;
if(OB_ISNULL(buf = allocator.alloc(sizeof(share::ObTabletAutoincInterval) * intervals_count_))) { if(OB_ISNULL(buf = allocator.alloc(sizeof(share::ObTabletAutoincInterval) * intervals_count_))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("fail to allocate memory", K(ret)); LOG_WARN("fail to allocate memory", K(ret));
} else { } else {
intervals_ = new (buf) ObTabletAutoincInterval[intervals_count_]; intervals_ = new (buf) ObTabletAutoincInterval[intervals_count_];