90sms created an issue (kamailio/kamailio#4511)
### Description
I'm using the htable module with the dbmode=0 parameter. The data to be
restored is stored in Redis. If Redis has exactly 1000 keys, then the data in
htable isn't restored (0 records in htable), but if in Redis are 1001 or 999
keys, everything is restored fine.
kamailio.conf:
```
----- htable params -----
modparam("htable", "db_url", "redis://REDIS_HOST:REDIS_PORT/REDIS_DB")
modparam("htable", "htable", "some_table=>size=14;dbmode=0;dbtable=some_table")
----- db_redis params -----
modparam("db_redis", "keys", "some_table=entry:key_name")
```
SCHEMA FILE /usr/share/kamailio/db_redis/kamailio/some_table:
```
id/int,key_name/string,key_type/int,value_type/int,key_value/string,expires/int,
2
```
CONSOLE:
```
kamcmd htable.reload some_table # for restore table
kamcmd htable.dump some_table # check that the table is empty if in Redis
are 1000 records
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.8.5 (x86_64/linux) b035a8
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC,
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES,
TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_SEND_BUFFER_SIZE
262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: b035a8
compiled on 00:00:00 Sep 13 2022 with gcc 11.5.0
```
* **Operating System**:
```
Red Hat Enterprise Linux release 9.4 (Plow) 5.14.0-427.47.1.el9_4.x86_64
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4511
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/[email protected]>_______________________________________________
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!