[CP] Check ret code for ObSqlBitSet::add_member()

This commit is contained in:
obdev
2022-10-03 20:03:27 +00:00
committed by wangzelin.wzl
parent 7d285d45d4
commit 493b2fb2e2
11 changed files with 69 additions and 60 deletions

View File

@ -298,10 +298,10 @@ public:
SQL_RESV_LOG(WARN, "failed to alloc new buf", K(ret));
}
}
if (pos >= desc_.len_) {
desc_.len_ = static_cast<int16_t>(pos) + 1;
}
if (OB_SUCC(ret)) {
if (pos >= desc_.len_) {
desc_.len_ = static_cast<int16_t>(pos) + 1;
}
bit_set_word_array_[pos] |= ((BitSetWord)1 << (index & PER_BITSETWORD_MASK));
}
}