Explorar el Código

[Minor] One more polishing thing

tags/3.1
Vsevolod Stakhov hace 2 años
padre
commit
21a1720ac3
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      src/libserver/redis_pool.cxx

+ 3
- 3
src/libserver/redis_pool.cxx Ver fichero

@@ -282,10 +282,8 @@ redis_pool_connection::~redis_pool_connection()
pool->unregister_context(ctx);

if (!(ctx->c.flags & REDIS_FREEING)) {
redisAsyncContext *ac = ctx;

auto *ac = ctx;
/* To prevent on_disconnect here */
state = RSPAMD_REDIS_POOL_CONN_FINALISING;
ctx = nullptr;
ac->onDisconnect = nullptr;
redisAsyncFree(ac);
@@ -558,6 +556,8 @@ auto redis_pool::release_connection(redisAsyncContext *ctx,
conn->elt->release_connection(conn);
}
else {
msg_err("fatal internal error, connection with ctx %p is not found in the Redis pool",
ctx);
RSPAMD_UNREACHABLE;
}
}

Cargando…
Cancelar
Guardar