Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
172eac50
Commit
172eac50
authored
Apr 19, 2013
by
antirez
Browse files
More explicit panic message on out of memory.
parent
5bf9b53a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
172eac50
...
@@ -2623,7 +2623,7 @@ void loadDataFromDisk(void) {
...
@@ -2623,7 +2623,7 @@ void loadDataFromDisk(void) {
void
redisOutOfMemoryHandler
(
size_t
allocation_size
)
{
void
redisOutOfMemoryHandler
(
size_t
allocation_size
)
{
redisLog
(
REDIS_WARNING
,
"Out Of Memory allocating %zu bytes!"
,
redisLog
(
REDIS_WARNING
,
"Out Of Memory allocating %zu bytes!"
,
allocation_size
);
allocation_size
);
redisPanic
(
"
OOM
"
);
redisPanic
(
"
Redis aborting for OUT OF MEMORY
"
);
}
}
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment