change memory allocation

This commit is contained in:
obdev 2023-11-08 14:43:10 +00:00 committed by ob-robot
parent e993e098f7
commit ef354be50c

View File

@ -66,7 +66,7 @@ int ObStorageLogReader::init(
STORAGE_REDO_LOG(WARN, "Log buffer's data has been set",
K(ret), KP(log_buffer_.get_data()));
} 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,
ObLogConstants::LOG_ITEM_MAX_LENGTH, attr));
if (nullptr == buf) {