Browse Source

TT#14008 lock Redis context during restore GET

Change-Id: I487427b4711aa9600db376f3987086fa47472bdb
mr9.5.2
Richard Fuchs 4 years ago
parent
commit
f6c61a5911
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/redis.c

+ 3
- 0
daemon/redis.c View File

@ -1751,7 +1751,10 @@ static void json_restore_call(struct redis *r, const str *callid, int foreign) {
JsonReader *root_reader =0;
JsonParser *parser =0;
mutex_lock(&r->lock);
rr_jsonStr = redis_get(r, REDIS_REPLY_STRING, "GET " PB, STR(callid));
mutex_unlock(&r->lock);
err = "could not retrieve JSON data from redis";
if (!rr_jsonStr)
goto err1;


Loading…
Cancel
Save