Split encoding mem mode to relative tenant.

This commit is contained in:
obdev
2023-06-06 05:18:19 +00:00
committed by ob-robot
parent 90a7245b26
commit d129bae0fe
5 changed files with 12 additions and 7 deletions

View File

@ -123,7 +123,7 @@ int ObMultiPrefixTree::HashTable::build(TreeNode &tnode, const int64_t move_step
* ObMultiPrefixTree
*/
ObMultiPrefixTree::ObMultiPrefixTree() : is_inited_(false),
alloc_(blocksstable::OB_ENCODING_LABEL_MULTI_PREFIX_TREE),
alloc_(blocksstable::OB_ENCODING_LABEL_MULTI_PREFIX_TREE, OB_MALLOC_NORMAL_BLOCK_SIZE, MTL_ID()),
tree_nodes_(NULL), cell_nodes_(NULL),
tnode_cnt_(0), cnode_cnt_(0), cnode_cnt_limit_(0), ht_(),
null_cnt_(0), nope_cnt_(0)
@ -458,6 +458,8 @@ ObMultiPrefixTreeFactory::ObMultiPrefixTreeFactory()
: allocator_(OB_MALLOC_NORMAL_BLOCK_SIZE, ObMalloc(blocksstable::OB_ENCODING_LABEL_PREFIX_TREE_FACTORY)),
prefix_trees_()
{
lib::ObMemAttr attr(MTL_ID(), blocksstable::OB_ENCODING_LABEL_PREFIX_TREE_FACTORY);
allocator_.set_attr(attr);
}
ObMultiPrefixTreeFactory::~ObMultiPrefixTreeFactory()