提交 3edc7f71 编写于 作者: C chaser-ch 提交者: LINGuanRen

disable macro buffer in asan mode

上级 d47e160a
......@@ -42,12 +42,14 @@ ObSelfBufferWriter::~ObSelfBufferWriter()
char *ObSelfBufferWriter::alloc(const int64_t size)
{
char *data = NULL;
#ifndef OB_USE_ASAN
if (size == macro_block_mem_ctx_.get_block_size()) {
data = (char *)macro_block_mem_ctx_.alloc();
if (OB_ISNULL(data)) {
STORAGE_LOG(WARN, "fail to alloc buf from mem ctx", K(size));
}
}
#endif
// alloc from mem ctx fail
if (OB_ISNULL(data)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册