Module: kamailio Branch: master Commit: 0729d9fc2cde7caf3e21b3e609cd26b24e38c19b URL: https://github.com/kamailio/kamailio/commit/0729d9fc2cde7caf3e21b3e609cd26b2...
Author: Andreas Granig agranig@sipwise.com Committer: Andreas Granig agranig@sipwise.com Date: 2018-04-05T11:18:47+02:00
db_redis: Force table scan if no query keys given
---
Modified: src/modules/db_redis/redis_dbase.c
---
Diff: https://github.com/kamailio/kamailio/commit/0729d9fc2cde7caf3e21b3e609cd26b2... Patch: https://github.com/kamailio/kamailio/commit/0729d9fc2cde7caf3e21b3e609cd26b2...
---
diff --git a/src/modules/db_redis/redis_dbase.c b/src/modules/db_redis/redis_dbase.c index 8914264249..9b6aac85b4 100644 --- a/src/modules/db_redis/redis_dbase.c +++ b/src/modules/db_redis/redis_dbase.c @@ -1744,6 +1744,7 @@ int db_redis_query(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _op, } else { LM_DBG("no columns given to build query keys, falling back to full table scan\n"); keys_count = 0; + do_table_scan = 1; }
if (db_redis_perform_query(_h, con, _k, _v, query_ops, _c, _n, _nc, _r,