Unverified Commit 0f741a9e authored by Oran Agra's avatar Oran Agra Committed by GitHub
Browse files

OOM Crash log include size of allocation attempt. (#7670)

Since users often post just the crash log in github issues, the log
print that's above it is missing.
No reason not to include the size in the panic message itself.
parent 88662c24
...@@ -5006,7 +5006,8 @@ void loadDataFromDisk(void) { ...@@ -5006,7 +5006,8 @@ void loadDataFromDisk(void) {
void redisOutOfMemoryHandler(size_t allocation_size) { void redisOutOfMemoryHandler(size_t allocation_size) {
serverLog(LL_WARNING,"Out Of Memory allocating %zu bytes!", serverLog(LL_WARNING,"Out Of Memory allocating %zu bytes!",
allocation_size); allocation_size);
serverPanic("Redis aborting for OUT OF MEMORY"); serverPanic("Redis aborting for OUT OF MEMORY. Allocating %zu bytes!",
allocation_size);
} }
void redisSetProcTitle(char *title) { void redisSetProcTitle(char *title) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment