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

Daniel-Constantin Mierla miconda at gmail.com
Tue May 24 22:03:09 CEST 2011



On 5/24/11 9:53 PM, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> seems the db query result is ordered by key type instead of key name.
>> Can you change that and test?
> daniel,
>
> when i changed the ordering by key name:
>
> 	db_key_t db_ord =&ht_db_name_column;
>
> then sht_dump correctly showed 4 entries and ::size value was 4 too.
>
> hope that that didn't break something else.  if not, i would like this
> change to be committed to 3.1 and master.
if you have only one array in the hash table, it should be fine. For 
more than one it may need a bit more tuning, as I could spot quickly 
right now.

Please wait a bit and I will analyze it deeper, probably tomorrow with 
fresh mind.

Thanks,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-dev mailing list