fix asan compile error
This commit is contained in:
@ -94,7 +94,7 @@ void *ObMallocAllocator::alloc(const int64_t size)
|
|||||||
void *ObMallocAllocator::alloc(const int64_t size, const oceanbase::lib::ObMemAttr &_attr)
|
void *ObMallocAllocator::alloc(const int64_t size, const oceanbase::lib::ObMemAttr &_attr)
|
||||||
{
|
{
|
||||||
#ifdef OB_USE_ASAN
|
#ifdef OB_USE_ASAN
|
||||||
UNUSED(attr);
|
UNUSED(_attr);
|
||||||
return ::malloc(size);
|
return ::malloc(size);
|
||||||
#else
|
#else
|
||||||
SANITY_DISABLE_CHECK_RANGE(); // prevent sanity_check_range
|
SANITY_DISABLE_CHECK_RANGE(); // prevent sanity_check_range
|
||||||
|
|||||||
2
deps/oblib/src/lib/resource/achunk_mgr.h
vendored
2
deps/oblib/src/lib/resource/achunk_mgr.h
vendored
@ -60,7 +60,7 @@ public:
|
|||||||
void set_max_chunk_cache_size(const int64_t max_cache_size)
|
void set_max_chunk_cache_size(const int64_t max_cache_size)
|
||||||
{
|
{
|
||||||
#ifdef OB_USE_ASAN
|
#ifdef OB_USE_ASAN
|
||||||
UNUSED(size);
|
UNUSED(max_cache_size);
|
||||||
max_chunk_cache_size_ = 0;
|
max_chunk_cache_size_ = 0;
|
||||||
#else
|
#else
|
||||||
max_chunk_cache_size_ = max_cache_size;
|
max_chunk_cache_size_ = max_cache_size;
|
||||||
|
|||||||
Reference in New Issue
Block a user