Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Commit

Permalink
Abort on OOM
Browse files Browse the repository at this point in the history
It looks like 62cc0e3#diff-07ce465381b20e496c6fb51bedd3491fR3105
inadvertently made the Windows side not abort when an OOM occurs.
  • Loading branch information
orangemocha committed Feb 13, 2015
1 parent b93dc1c commit 768e061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -3463,8 +3463,8 @@ void redisOutOfMemoryHandler(size_t allocation_size) {
#else
redisLog(REDIS_WARNING,"Out Of Memory allocating %zu bytes!",
allocation_size);
redisPanic("Redis aborting for OUT OF MEMORY");
#endif
redisPanic("Redis aborting for OUT OF MEMORY");
}

void redisSetProcTitle(char *title) {
Expand Down

0 comments on commit 768e061

Please sign in to comment.