From 8df8a2308fcf5efda638f160428158127930d00f Mon Sep 17 00:00:00 2001 From: Rajesh Joseph Date: Tue, 22 Nov 2016 01:48:26 +0530 Subject: cli: glusterfs_ctx_defaults_init should not re-initialize ctx->locks glusterfs_ctx_new already initialize ctx->locks therefore the second initialization in glusterfs_ctx_defaults_init does not make sense. Change-Id: I8a44bed13af20e60e8bafb05360e88c0b237056c BUG: 1397419 Signed-off-by: Rajesh Joseph Reviewed-on: http://review.gluster.org/15904 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Atin Mukherjee --- cli/src/cli.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cli/src/cli.c b/cli/src/cli.c index bc67bcd055a..422dad2a694 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -153,8 +153,6 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx) LOCK_INIT (&pool->lock); ctx->pool = pool; - LOCK_INIT (&ctx->lock); - cmd_args = &ctx->cmd_args; INIT_LIST_HEAD (&cmd_args->xlator_options); -- cgit