[SR-Users] htable ::size has wrong value

Juha Heinanen jh at tutpro.com
Tue May 24 16:40:26 CEST 2011


i have entries in htable with key name lpi::20033::prefix:

# sip-proxy_ctl mi sht_dump htable | egrep 20033
lpi::20033::prefix[0]:: +3583796294
lpi::20033::prefix[1]:: +35837824030
lpi::20033::prefix::size:: 1

as you see in above, size of that key name is 1 although there clearly
is two entries in the table with that key name.

according to readme ::size is number of items:

3.7. array_size_suffix (str)

The suffix to be added to store the number of items in an array.

i verified with another key name where there was only one prefix, and
then ::size was again 1.  so sometimes ::size is correct and sometimes
incorrect.

this looks like a serious bug to me.  any comments?

-- juha



More information about the sr-users mailing list