Module: kamailio
Branch: master
Commit: 73914396c127529e7e0d58f3e92170891840cbc2
URL: 
https://github.com/kamailio/kamailio/commit/73914396c127529e7e0d58f3e92170891840cbc2

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2025-01-07T18:37:52+01:00

db_redis: stop searching for keys if scan_key is set

---

Modified: src/modules/db_redis/redis_dbase.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/73914396c127529e7e0d58f3e92170891840cbc2.diff
Patch: 
https://github.com/kamailio/kamailio/commit/73914396c127529e7e0d58f3e92170891840cbc2.patch

---

diff --git a/src/modules/db_redis/redis_dbase.c 
b/src/modules/db_redis/redis_dbase.c
index 5621ea6bd69..7f1d5720bd6 100644
--- a/src/modules/db_redis/redis_dbase.c
+++ b/src/modules/db_redis/redis_dbase.c
@@ -796,6 +796,7 @@ static int db_redis_build_query_keys(km_redis_con_t *con, 
const str *table_name,
                                                        type->type.s);
                                }
                                keyname.s = NULL;
+                               break;
                        } else if(keyname.s) {
                                pkg_free(keyname.s);
                                keyname.s = NULL;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to