summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.c
diff options
context:
space:
mode:
authorVijaikumar M <vmallika@redhat.com>2014-03-25 15:44:56 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-03-25 03:32:21 -0700
commite078092e827807aec0eef185198771f49f809b34 (patch)
tree5eea84d1266cf2261cd8a9acb39e2262742013bc /xlators/mgmt/glusterd/src/glusterd.c
parentcb9bb522972b6cff45c0b6646100151e30e6424c (diff)
snapshot: cleanup unwanted CG-code
Change-Id: Id3da2a7aac84027aeff050f6dd9a3484719362bc BUG: 1073780 Signed-off-by: Vijaikumar M <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/7204 Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index cd1bb880f..45a0b7de5 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -1275,16 +1275,6 @@ init (xlator_t *this)
exit (1);
}
- snprintf (storedir, PATH_MAX, "%s/%s", workdir,
- GLUSTERD_VOL_SNAP_CG_DIR_PREFIX);
- ret = mkdir (storedir, 0777);
- if ((-1 == ret) && (errno != EEXIST)) {
- gf_log (this->name, GF_LOG_CRITICAL,
- "Unable to create cgs directory %s"
- " ,errno = %d", storedir, errno);
- exit (1);
- }
-
ret = glusterd_rpcsvc_options_build (this->options);
if (ret)
goto out;
@@ -1349,7 +1339,6 @@ init (xlator_t *this)
INIT_LIST_HEAD (&conf->peers);
INIT_LIST_HEAD (&conf->volumes);
- INIT_LIST_HEAD (&conf->snap_cg);
INIT_LIST_HEAD (&conf->snapshots);
pthread_mutex_init (&conf->mutex, NULL);