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

Juha Heinanen jh at tutpro.com
Thu May 26 06:20:12 CEST 2011


Daniel-Constantin Mierla writes:

> The idea is to return the db records ordered by key and when there is a 
> change of name, if the previous was supposed to be array, then add the 
> size. Also, the keys for arrays are added with index.
> 
> If it works as expected, feel free to backport.

daniel,

now all four example entries get loaded, but size is one too large:

lpi::20033::prefix[2]:: +3587685601
lpi::20033::prefix[3]:: +3587645294
lpi::20033::prefix[0]:: +3587413481
lpi::20033::prefix[1]:: +35876801039
lpi::20033::prefix::size:: 5

same in some other cases that i checked.

-- juha



More information about the sr-dev mailing list