summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-07-06 01:26:38 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-06 05:58:41 -0700
commit22a79cd791a5d8baa3c623673ff7bd0bb62564e4 (patch)
tree115548c1241ac0e8a192a4518d4ceea9c3c03f02 /glusterfsd
parenta45ac57e4e12a32f7136f22c2eb0519fbd61354c (diff)
glusterfsd: Handle setting entry-timeout to 0
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
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 13217836c90..3e0947fbb2b 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -220,7 +220,7 @@ create_fuse_mount (glusterfs_ctx_t *ctx)
if (cmd_args->fuse_attribute_timeout >= 0)
ret = dict_set_double (master->options, ZR_ATTR_TIMEOUT_OPT,
cmd_args->fuse_attribute_timeout);
- if (cmd_args->fuse_entry_timeout)
+ if (cmd_args->fuse_entry_timeout >= 0)
ret = dict_set_double (master->options, ZR_ENTRY_TIMEOUT_OPT,
cmd_args->fuse_entry_timeout);