From 4645dc9a0be85d64f0a19c4cc9cf8cdc24e24865 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Thu, 3 Dec 2009 08:11:36 +0000 Subject: mount/fuse: Handle the case when attribute_timeout is set to 0 in dictionary. Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 252 (client coherence problem with locks and truncate) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=252 --- xlators/mount/fuse/src/fuse-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mount/fuse') 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", -- cgit