[CP] fix mysql priv view bug

This commit is contained in:
SevenJ-swj
2024-05-13 05:21:14 +00:00
committed by ob-robot
parent 4fca2f381a
commit 04b378aa45
10 changed files with 193 additions and 42 deletions

View File

@ -13,9 +13,9 @@
#ifndef OCEANBASE_COMMON_OB_MASK_SET2_
#define OCEANBASE_COMMON_OB_MASK_SET2_
#include "ob_bit_set.h"
#include "ob_iarray.h"
#include "ob_bit_set.h"
#include "ob_iarray.h"
namespace oceanbase
{
namespace common
@ -153,9 +153,9 @@ public:
bool is_mask(const T &key)
{
bool bool_ret = false;
if (is_inited_) {
for (int64_t i = 0; i < array_->count(); ++i) {
if (array_->at(i) == key && bitset_.has_member(i)) {
if (is_inited_) {
for (int64_t i = 0; i < array_->count(); ++i) {
if (array_->at(i) == key && bitset_.has_member(i)) {
bool_ret = true;
break;
}