fix bad MEMORY_LOG when ServerGTimer hang

This commit is contained in:
obdev
2023-02-10 08:41:32 +00:00
committed by ob-robot
parent 63440bd16e
commit 364fdb8222
12 changed files with 107 additions and 65 deletions

View File

@ -509,7 +509,7 @@ void ObMallocAllocator::print_tenant_memory_usage(uint64_t tenant_id) const
ObPageManagerCenter::get_instance().print_tenant_stat(tenant_id, buf, BUFLEN, ctx_pos);
}
buf[std::min(ctx_pos, BUFLEN - 1)] = '\0';
allow_next_syslog();
_LOG_INFO("[MEMORY] tenant: %lu, limit: %'lu hold: %'lu rpc_hold: %'lu cache_hold: %'lu "
"cache_used: %'lu cache_item_count: %'lu \n%s",
tenant_id,