[CP] Limit the memory use of bloom filter to 2g

This commit is contained in:
qianchanger
2022-11-07 09:06:33 +00:00
committed by wangzelin.wzl
parent b1b4631c04
commit fa87d1117c
2 changed files with 11 additions and 2 deletions

View File

@ -25,7 +25,7 @@ using namespace sql;
using namespace obrpc;
#define MIN_FILTER_SIZE 256
#define MAX_BIT_COUNT 4611686018427387904 // 2^62
#define MAX_BIT_COUNT 17179869184// 2^34 due to the memory single alloc limit
#define BF_BLOCK_SIZE 256L
#define BLOCK_MASK 255L // = size of block - 1
#define CACHE_LINE_SIZE 64 // 64 bytes