Revision d8a852fa xseg/peers/user/mt-vlmcd.c

b/xseg/peers/user/mt-vlmcd.c
181 181
	r = xhash_insert(vlmc->volumes, (xhashidx) vi->name, (xhashidx) vi);
182 182
	while (r == -XHASH_ERESIZE) {
183 183
		xhashidx shift = xhash_grow_size_shift(vlmc->volumes);
184
		xhash_t *new_hashmap = xhash_resize(vlmc->volumes, shift, NULL);
184
		xhash_t *new_hashmap = xhash_resize(vlmc->volumes, shift, 0, NULL);
185 185
		if (!new_hashmap){
186 186
			XSEGLOG2(&lc, E, "Cannot grow vlmc->volumes to sizeshift %llu",
187 187
					(unsigned long long) shift);
......
206 206
	r = xhash_delete(vlmc->volumes, (xhashidx) vi->name);
207 207
	while (r == -XHASH_ERESIZE) {
208 208
		xhashidx shift = xhash_shrink_size_shift(vlmc->volumes);
209
		xhash_t *new_hashmap = xhash_resize(vlmc->volumes, shift, NULL);
209
		xhash_t *new_hashmap = xhash_resize(vlmc->volumes, shift, 0, NULL);
210 210
		if (!new_hashmap){
211 211
			XSEGLOG2(&lc, E, "Cannot shrink vlmc->volumes to sizeshift %llu",
212 212
					(unsigned long long) shift);
......
800 800
	}
801 801
	peer->priv = (void *) vlmc;
802 802

  
803
	vlmc->volumes = xhash_new(3, STRING);
803
	vlmc->volumes = xhash_new(3, 0, STRING);
804 804
	if (!vlmc->volumes){
805 805
		XSEGLOG2(&lc, E, "Cannot alloc vlmc");
806 806
		return -1;

Also available in: Unified diff