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
hiredis
Commits
507a6dca
Unverified
Commit
507a6dca
authored
Aug 29, 2022
by
Michael Grunder
Committed by
GitHub
Aug 29, 2022
Browse files
Merge pull request #1090 from Nordix/subscribe-oom-error
Copy OOM errors to redisAsyncContext when finding subscribe callback
parents
e0200b79
b044eaa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
async.c
View file @
507a6dca
...
@@ -535,6 +535,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
...
@@ -535,6 +535,7 @@ static int __redisGetSubscribeCallback(redisAsyncContext *ac, redisReply *reply,
return
REDIS_OK
;
return
REDIS_OK
;
oom:
oom:
__redisSetError
(
&
(
ac
->
c
),
REDIS_ERR_OOM
,
"Out of memory"
);
__redisSetError
(
&
(
ac
->
c
),
REDIS_ERR_OOM
,
"Out of memory"
);
__redisAsyncCopyError
(
ac
);
return
REDIS_ERR
;
return
REDIS_ERR
;
}
}
...
...
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