summaryrefslogtreecommitdiffstats
path: root/cli/src
diff options
context:
space:
mode:
authorRajesh Joseph <rjoseph@redhat.com>2016-11-22 01:48:26 +0530
committerAtin Mukherjee <amukherj@redhat.com>2016-11-24 06:29:01 -0800
commit8df8a2308fcf5efda638f160428158127930d00f (patch)
tree0a6f7cf2feb2f1a490483948613a2fd6b64db780 /cli/src
parent114c50c1a10d649a8b640627f09fd5872828d4ec (diff)
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 <rjoseph@redhat.com> Reviewed-on: http://review.gluster.org/15904 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'cli/src')
-rw-r--r--cli/src/cli.c2
1 files changed, 0 insertions, 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);