diff options
| author | Pranith K <pranithk@gluster.com> | 2010-10-29 03:39:56 +0000 | 
|---|---|---|
| committer | Anand V. Avati <avati@dev.gluster.com> | 2010-10-29 03:42:19 -0700 | 
| commit | 9c29312628af743f16badb4bc820cbd31f2a9488 (patch) | |
| tree | bcf25aa7bdd7f60be49370f6555e2eaa61572965 /xlators/mgmt/glusterd/src/glusterd.c | |
| parent | c1b80f0f590e2d7448b890b57e80f4a1b2e39a03 (diff) | |
cli,mgmt/glusterd: fsm log implementation
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1966 (Unnecessarily verbose logs at the default log level)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1966
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd.c | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 9d9820e8450..78328b98007 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -43,6 +43,7 @@  #include "glusterd-sm.h"  #include "glusterd-op-sm.h"  #include "glusterd-store.h" +#include "glusterd-utils.h"  static uuid_t glusterd_uuid;  extern struct rpcsvc_program glusterd1_mop_prog; @@ -386,6 +387,12 @@ init (xlator_t *this)          strncpy (conf->workdir, dirname, PATH_MAX);          INIT_LIST_HEAD (&conf->xprt_list); +        ret = glusterd_sm_tr_log_init (&conf->op_sm_log, +                                       glusterd_op_sm_state_name_get, +                                       glusterd_op_sm_event_name_get, +                                       GLUSTERD_TR_LOG_SIZE); +        if (ret) +                goto out;          this->private = conf;          //this->ctx->top = this; @@ -437,6 +444,7 @@ fini (xlator_t *this)                  FREE (conf->pmap);          if (conf->handle)                  glusterd_store_handle_destroy (conf->handle); +        glusterd_sm_tr_log_delete (&conf->op_sm_log);          GF_FREE (conf);          this->private = NULL;  out:  | 
