fix btree core

This commit is contained in:
nroskill
2022-01-05 20:36:49 +08:00
committed by LINxiansheng
parent 8bc16fc202
commit d5a5ed4251
3 changed files with 9 additions and 3 deletions

View File

@ -103,11 +103,16 @@ int alloc_key(BtreeKey*& ret_key, int64_t key)
class FakeAllocator : public ObIAllocator {
public:
void* alloc(int64_t size)
void *alloc(int64_t size) override
{
return ob_malloc(size, attr);
}
void free(void* ptr)
void* alloc(const int64_t size, const ObMemAttr& attr) override
{
UNUSED(attr);
return alloc(size);
}
void free(void* ptr) override
{
ob_free(ptr);
}