bufix: ObSqlBitSet's length is incorrectly altered when alloc_new_buf failed

This commit is contained in:
obdev
2022-12-13 06:45:23 +00:00
committed by ob-robot
parent d9f45fba73
commit 73345ff899

View File

@ -407,7 +407,8 @@ public:
} }
} }
} }
if (that_count >= desc_.len_) {
if (OB_SUCC(ret) && that_count >= desc_.len_) {
desc_.len_ = static_cast<int16_t>(that_count); desc_.len_ = static_cast<int16_t>(that_count);
} }