diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-07-05 11:24:27 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-05 23:52:53 -0700 |
commit | 3ec73cb88e8a302e973f8d1a68bcaf3981512b20 (patch) | |
tree | bd21dc8d9077a0c51913dc9d21e7f467240e7efc /xlators | |
parent | 43cdbc3756bde8c4c95dd3c3a89c802ec204c847 (diff) |
mount/fuse: 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 'xlators')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 2 |
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 096ca93df58..4618a37854c 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -3648,7 +3648,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 */ |