提交 d5a5ed42 编写于 作者: N nroskill 提交者: LINGuanRen

fix btree core

上级 8bc16fc2
......@@ -22,7 +22,7 @@ namespace oceanbase {
namespace common {
class QClock {
public:
enum { MAX_QCLOCK_SLOT_NUM = OB_MAX_CPU_NUM * 32 };
enum { MAX_QCLOCK_SLOT_NUM = OB_MAX_CPU_NUM * 64 };
struct ClockSlot {
ClockSlot() : clock_(UINT64_MAX)
{}
......
......@@ -504,6 +504,7 @@ public:
void release_ref()
{
qclock_.leave_critical(qc_slot_);
qc_slot_ = UINT64_MAX;
}
OB_INLINE CompHelper& get_comp()
{
......
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册