diff options
author | Anand Avati <avati@gluster.com> | 2010-11-18 08:35:24 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-18 06:12:22 -0800 |
commit | f6785d2b4999db7d42e8c1cd054fd7ec174e8136 (patch) | |
tree | 72e242ab0cd74222f27937eb4bf69eb0921baa9e /xlators/nfs | |
parent | e098653b73c7b379b2ad6bf7878bac65147f7ebe (diff) |
nfs: treat GF_EVENT_CHILD_CONNECTING as subvolume up statusv3.1.1qa9
GF_EVENT_CHILD_CONNECTING is sent as a status from underlying subvolumes
after a sufficient margin of time (tcp connect() timeout) if the subvolumes
are not reachable.
This should avoid the problem of NFS not being reachable if any volume
is down
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2093 (volumes cannot start when one node in a replicated setup is down)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2093
Diffstat (limited to 'xlators/nfs')
-rw-r--r-- | xlators/nfs/server/src/nfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c index ec939a55e48..5f116a3b76d 100644 --- a/xlators/nfs/server/src/nfs.c +++ b/xlators/nfs/server/src/nfs.c @@ -662,6 +662,7 @@ notify (xlator_t *this, int32_t event, void *data, ...) event); switch (event) { + case GF_EVENT_CHILD_CONNECTING: case GF_EVENT_CHILD_UP: { nfs_startup_subvolume (this, subvol); |