summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 89087558a44..b5a51e32f2b 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -80,7 +80,6 @@
#include "exports.h"
#include "daemon.h"
-#include "tw.h"
/* using argp for command line parsing */
@@ -2495,9 +2494,10 @@ main (int argc, char *argv[])
/* do this _after_ daemonize() */
if (cmd->global_timer_wheel) {
- ret = glusterfs_global_timer_wheel_init (ctx);
- if (ret)
+ if (!glusterfs_ctx_tw_get (ctx)) {
+ ret = -1;
goto out;
+ }
}
ret = glusterfs_volumes_init (ctx);