Revision 18d83f26 som/TopologyManager/tman.c

View differences:

som/TopologyManager/tman.c
49 49
	const uint8_t *mdata;
50 50

  
51 51
        mdata = get_metadata(c,&msize);
52
	res = cache_init(cache_size,msize);
52
	res = cache_init(cache_size, msize, 0);
53 53
        if (res == NULL) {
54 54
          return res;
55 55
        }
......
78 78
  topo_proto_init(myID, metadata, metadata_size);
79 79
  mymeta = metadata;
80 80
  
81
  local_cache = cache_init(cache_size, metadata_size);
81
  local_cache = cache_init(cache_size, metadata_size, 0);
82 82
  if (local_cache == NULL) {
83 83
    return -1;
84 84
  }
......
221 221
		struct peer_cache *ncache;
222 222
		int j;
223 223

  
224
		if (size) ncache = cache_init(size,metadata_size);
224
		if (size) ncache = cache_init(size, metadata_size, 0);
225 225
		else {return 1;}
226 226
		for (j=0;j<size;j++)
227 227
			cache_add_ranked(ncache, peers[j],(const uint8_t *)metadata + j * metadata_size, metadata_size, rankFunct, mymeta);

Also available in: Unified diff