summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src/dht-common.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-04-12 04:12:00 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-12 19:18:03 +0530
commitecead44b5c8d1215e7c398ca1132a4b0b11a44bb (patch)
tree01bdbf9c7ae83f90487ab6442c6016d117aa1a02 /xlators/cluster/dht/src/dht-common.c
parente00bdb4a323b60ced500df59071d2a940b976ae9 (diff)
in dht, initialize the free available space properly, so the first few creates are not confused.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r--xlators/cluster/dht/src/dht-common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index e68b268df30..b2d2a0d9f46 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -3649,6 +3649,9 @@ dht_notify (xlator_t *this, int event, void *data, ...)
}
UNLOCK (&conf->subvolume_lock);
+ /* one of the node came back up, do a stat update */
+ dht_get_du_info_for_subvol (this, cnt);
+
break;
case GF_EVENT_CHILD_DOWN: