fix btree core
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user