Module: kamailio Branch: master Commit: 46737c269ae290c29639ab1a5e66e4cf1637556e URL: https://github.com/kamailio/kamailio/commit/46737c269ae290c29639ab1a5e66e4cf1637556e
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-12-09T11:49:53+01:00 db_redis: use set max fetch for result to 1000 when *keys_count == 1000 - GH #4511 --- Modified: src/modules/db_redis/redis_dbase.c --- Diff: https://github.com/kamailio/kamailio/commit/46737c269ae290c29639ab1a5e66e4cf1637556e.diff Patch: https://github.com/kamailio/kamailio/commit/46737c269ae290c29639ab1a5e66e4cf1637556e.patch --- diff --git a/src/modules/db_redis/redis_dbase.c b/src/modules/db_redis/redis_dbase.c index de9a96bc452..cefed0150cd 100644 --- a/src/modules/db_redis/redis_dbase.c +++ b/src/modules/db_redis/redis_dbase.c @@ -1759,7 +1759,7 @@ static int db_redis_perform_query(const db1_con_t *_h, km_redis_con_t *con, max = 0; if(*keys_count == num_rows) - max = (*keys_count) % 1000; + max = (*keys_count == 1000) ? 1000 : *keys_count % 1000; else if(num_rows % 1000 == 0) max = 1000; _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
