change memory allocation
This commit is contained in:
@ -66,7 +66,7 @@ int ObStorageLogReader::init(
|
|||||||
STORAGE_REDO_LOG(WARN, "Log buffer's data has been set",
|
STORAGE_REDO_LOG(WARN, "Log buffer's data has been set",
|
||||||
K(ret), KP(log_buffer_.get_data()));
|
K(ret), KP(log_buffer_.get_data()));
|
||||||
} else {
|
} else {
|
||||||
const ObMemAttr attr(OB_SERVER_TENANT_ID, ObModIds::OB_LOG_READER);
|
const ObMemAttr attr(tenant_id, ObModIds::OB_LOG_READER);
|
||||||
char *buf = static_cast<char *>(ob_malloc_align(OB_DIRECT_IO_ALIGN,
|
char *buf = static_cast<char *>(ob_malloc_align(OB_DIRECT_IO_ALIGN,
|
||||||
ObLogConstants::LOG_ITEM_MAX_LENGTH, attr));
|
ObLogConstants::LOG_ITEM_MAX_LENGTH, attr));
|
||||||
if (nullptr == buf) {
|
if (nullptr == buf) {
|
||||||
|
|||||||
Reference in New Issue
Block a user