Browse code

db_redis: Force table scan if no query keys given

Andreas Granig authored on 05/04/2018 09:18:47
Showing 1 changed files
... ...
@@ -1744,6 +1744,7 @@ int db_redis_query(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _op,
1744 1744
     } else {
1745 1745
         LM_DBG("no columns given to build query keys, falling back to full table scan\n");
1746 1746
         keys_count = 0;
1747
+        do_table_scan = 1;
1747 1748
     }
1748 1749
 
1749 1750
     if (db_redis_perform_query(_h, con, _k, _v, query_ops, _c, _n, _nc, _r,