Module: kamailio
Branch: master
Commit: cb8d366d6c5cc9a0af7159e8be65444ac23f47a1
URL:
https://github.com/kamailio/kamailio/commit/cb8d366d6c5cc9a0af7159e8be65444…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-19T09:19:58+01:00
db_redis: log message if failure to get reply
---
Modified: src/modules/db_redis/redis_connection.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cb8d366d6c5cc9a0af7159e8be65444…
Patch:
https://github.com/kamailio/kamailio/commit/cb8d366d6c5cc9a0af7159e8be65444…
---
diff --git a/src/modules/db_redis/redis_connection.c
b/src/modules/db_redis/redis_connection.c
index e030472d9e..6743a97cf1 100644
--- a/src/modules/db_redis/redis_connection.c
+++ b/src/modules/db_redis/redis_connection.c
@@ -394,7 +394,9 @@ void db_redis_consume_replies(km_redis_con_t *con) {
redis_key_t *query;
while (con->append_counter > 0 && con->con &&
!con->con->err) {
LM_DBG("consuming outstanding reply %u", con->append_counter);
- db_redis_get_reply(con, (void**)&reply);
+ if(db_redis_get_reply(con, (void**)&reply) != REDIS_OK) {
+ LM_DBG("failure to get the reply\n");
+ }
if (reply) {
freeReplyObject(reply);
reply = NULL;