Browse Source

Redis fix for active-active

pull/1646/head
Stefan Mititelu 3 years ago
parent
commit
2f705df1bf
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      daemon/call.c
  2. +3
    -0
      daemon/redis.c

+ 1
- 0
daemon/call.c View File

@ -4698,6 +4698,7 @@ del_all:
ilog(LOG_INFO, "Deleting entire call"); ilog(LOG_INFO, "Deleting entire call");
rwlock_unlock_w(&c->master_lock); rwlock_unlock_w(&c->master_lock);
call_destroy(c); call_destroy(c);
update = false;
} }
goto success; goto success;


+ 3
- 0
daemon/redis.c View File

@ -2743,6 +2743,9 @@ void redis_delete(struct call *c, struct redis *r) {
if (!r) if (!r)
return; return;
if (c->foreign_call)
return;
if (delete_async) { if (delete_async) {
LOCK(&r->async_lock); LOCK(&r->async_lock);
rwlock_lock_r(&c->master_lock); rwlock_lock_r(&c->master_lock);


Loading…
Cancel
Save