From 47e69455d3aede77960fd81a7cf3d6b4a869dbfa Mon Sep 17 00:00:00 2001 From: Rajesh Joseph Date: Tue, 22 Nov 2016 01:51:19 +0530 Subject: glusterfsd: 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: I6027cbd311da8e80585e0f0dcd6916e3bc8dd284 BUG: 1397419 Signed-off-by: Rajesh Joseph Reviewed-on: http://review.gluster.org/15905 NetBSD-regression: NetBSD Build System Reviewed-by: Poornima G CentOS-regression: Gluster Build System Smoke: Gluster Build System Reviewed-by: Vijay Bellur Reviewed-by: Atin Mukherjee --- glusterfsd/src/glusterfsd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 20aabedf849..5f7a4dc6f36 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1531,7 +1531,6 @@ glusterfs_ctx_defaults_init (glusterfs_ctx_t *ctx) if (!ctx->logbuf_pool) goto out; - LOCK_INIT (&ctx->lock); pthread_mutex_init (&ctx->notify_lock, NULL); pthread_cond_init (&ctx->notify_cond, NULL); -- cgit