summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-07-05 11:20:30 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-05 23:53:01 -0700
commit002d35bfb11f134749d456ed452d13e795bbc9da (patch)
treea1516e451ff6e220a59835133bde0e5ebd37bd19
parentc1cbc908731c8e55e60fecb97bb7b65b1bc578a6 (diff)
mount/fuse: Handle setting entry-timeout to 0.v3.0.5
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1034 (rename() is not atomic) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1034
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 682eb447e..27f1aa823 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -3429,7 +3429,7 @@ init (xlator_t *this_xl)
ret = dict_get_double (options, "entry-timeout",
&priv->entry_timeout);
- if (!priv->entry_timeout)
+ if (ret != 0)
priv->entry_timeout = 1.0; /* default */