diff options
Diffstat (limited to 'xlators/cluster/dht/src/dht-helper.c')
| -rw-r--r-- | xlators/cluster/dht/src/dht-helper.c | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-helper.c b/xlators/cluster/dht/src/dht-helper.c index 81d1dffa0af..8e7989822cd 100644 --- a/xlators/cluster/dht/src/dht-helper.c +++ b/xlators/cluster/dht/src/dht-helper.c @@ -1000,7 +1000,12 @@ dht_init_local_subvolumes (xlator_t *this, dht_conf_t *conf)          conf->local_subvols = GF_CALLOC (cnt, sizeof (xlator_t *),                                          gf_dht_mt_xlator_t); -        if (!conf->local_subvols) { + +        /* FIX FIX : do this dynamically*/ +        conf->local_nodeuuids = GF_CALLOC (cnt, sizeof (subvol_nodeuuid_t), +                                           gf_dht_nodeuuids_t); + +        if (!conf->local_subvols || !conf->local_nodeuuids) {                  return -1;          }  | 
