[CP] fix mysql priv view bug
This commit is contained in:
12
deps/oblib/src/lib/container/ob_mask_set2.h
vendored
12
deps/oblib/src/lib/container/ob_mask_set2.h
vendored
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user