summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2009-12-03 08:11:36 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-03 11:49:10 -0800
commit4645dc9a0be85d64f0a19c4cc9cf8cdc24e24865 (patch)
treef6f9babd11f91e517208775e7dc192ae65a916fc
parent6922f156d65e7426b90f6ae5ebf0fc87f162554c (diff)
mount/fuse: Handle the case when attribute_timeout is set to 0 in dictionary.
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 252 (client coherence problem with locks and truncate) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=252
-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 547e7e15cda..732d97e3f18 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -3401,7 +3401,7 @@ init (xlator_t *this_xl)
ret = dict_get_double (options, "attribute-timeout",
&priv->attribute_timeout);
- if (!priv->attribute_timeout)
+ if (ret != 0)
priv->attribute_timeout = 1.0; /* default */
ret = dict_get_double (options, "entry-timeout",