From 45f03a58a0fbfc1d5e647c764b10e37d0a9ebb26 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 8 Sep 2011 14:06:32 +0530 Subject: Proactive self heal process implementation Change-Id: I96db0d94566ceabf1649f890318363f738c06553 BUG: 2458 Reviewed-on: http://review.gluster.com/403 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- glusterfsd/src/glusterfsd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 4f8d73d07cd..4e0962b623a 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -76,6 +76,7 @@ #include "call-stub.h" #include #include "rpc-clnt.h" +#include "syncop.h" #include "daemon.h" @@ -409,7 +410,6 @@ get_volfp (glusterfs_ctx_t *ctx) return specfp; } - static int gf_remember_xlator_option (struct list_head *options, char *arg) { @@ -1056,7 +1056,6 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx) return 0; } - static int logging_init (glusterfs_ctx_t *ctx) { @@ -1579,6 +1578,13 @@ main (int argc, char *argv[]) if (ret) goto out; + ctx->env = syncenv_new (0); + if (!ctx->env) { + gf_log ("", GF_LOG_ERROR, + "Could not create new sync-environment"); + goto out; + } + ret = glusterfs_volumes_init (ctx); if (ret) goto out; -- cgit