Unverified Commit 507a6dca authored by Michael Grunder's avatar Michael Grunder Committed by GitHub
Browse files

Merge pull request #1090 from Nordix/subscribe-oom-error

Copy OOM errors to redisAsyncContext when finding subscribe callback
parents e0200b79 b044eaa6
...@@ -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;
} }
......
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