Fix OOM bug that SegmentBitset allocate more than the 2M size

This commit is contained in:
obdev
2021-07-15 11:51:13 +08:00
committed by wangzelin.wzl
parent 94816acd47
commit b1c0fe05fa
3 changed files with 6 additions and 3 deletions

View File

@ -442,7 +442,7 @@ public:
}
private:
ObSegmentBitSet<> bits_;
ObSegmentBitSet<common::OB_MALLOC_BIG_BLOCK_SIZE> bits_;
int64_t cnt_; // power of 2
int64_t h2_shift_;
};