mirror of https://github.com/sipwise/kamailio.git
Redis is allowed to return an empty list in response to a SCAN even when the iteration isn't complete yet. Only a zero cursor value returned from a SCAN is indicative of the SCAN being complete. Change-Id: Ib5da589c6944fcd46b2bbdc11c200e6a4f7108cbchanges/14/31814/4
parent
67446d7fb9
commit
a29819349b
@ -0,0 +1,14 @@
|
||||
--- a/src/modules/db_redis/redis_dbase.c
|
||||
+++ b/src/modules/db_redis/redis_dbase.c
|
||||
@@ -727,11 +727,6 @@
|
||||
table_name->len, table_name->s);
|
||||
goto err;
|
||||
}
|
||||
- if (reply->element[1]->elements == 0) {
|
||||
- LM_DBG("no matching entries found for scan on table '%.*s'\n",
|
||||
- table_name->len, table_name->s);
|
||||
- return 0;
|
||||
- }
|
||||
|
||||
*query_keys_count += reply->element[1]->elements;
|
||||
|
||||
Loading…
Reference in new issue