MT#55283 restore selected DB after delete

Deleting a call can have the side effect of changing the active Redis DB
on the writing instance. Restore the correct DB afterwards if needed.

Fixes #1905

Change-Id: I12dae767ffa5d25703e024d2ec59aa21ba9da101
pull/1907/head
Richard Fuchs 10 months ago
parent add46f265a
commit fdabc9b59e

@ -2229,6 +2229,8 @@ err1:
redis_ports_release_pop(false);
must_release_pop = false;
redis_select_db(rtpe_redis_write, rtpe_redis_write->db);
mutex_lock(&rtpe_redis_write->lock);
redisCommandNR(rtpe_redis_write->ctx, "DEL " PB, PBSTR(callid));
mutex_unlock(&rtpe_redis_write->lock);

Loading…
Cancel
Save