src/common/map.c
// Set the key sizing function.
Set the key sizing function.
Set the key sizing function .
int map_set_key_size_function(struct map *map, map_key_size_function_t function)
{
        if (map->bucket_count > 0) {
                return -1;
        }
        map->key_size_function = function;
        return 0;
}
int map_set_key_size_function ( struct map * map , map_key_size_function_t function ) { if ( map -> bucket_count > 0 ) { return -1 ; } map -> key_size_function = function ; return 0 ; }
Set the key sizing function.
Set the key sizing function .
// Since we have already added entries to the map we can't // change how we determine key size.