From 931a59e2b9130c6e748f2b7193cd0c2ac5a557bf Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sun, 25 Jul 2010 00:38:01 +0000 Subject: DVM: bug fixes in cli and glusterd for probe, start volume Signed-off-by: Vijay Bellur Signed-off-by: Anand V. Avati BUG: 1187 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1187 --- xlators/mgmt/glusterd/src/glusterd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd.c') diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c index 7e886f17a..cfd07433b 100644 --- a/xlators/mgmt/glusterd/src/glusterd.c +++ b/xlators/mgmt/glusterd/src/glusterd.c @@ -48,6 +48,7 @@ static uuid_t glusterd_uuid; extern struct rpcsvc_program glusterd1_mop_prog; extern struct rpcsvc_program gluster_handshake_prog; extern struct rpc_clnt_program glusterd3_1_mgmt_prog; +extern glusterd_op_info_t opinfo; static int glusterd_retrieve_uuid () @@ -61,6 +62,16 @@ glusterd_store_uuid () return 0; } +static int +glusterd_opinfo_init () +{ + int32_t ret = -1; + + ret = pthread_mutex_init (&opinfo.lock, NULL); + + return ret; +} + static int glusterd_uuid_init () { @@ -276,6 +287,7 @@ init (xlator_t *this) glusterd_friend_sm_init (); glusterd_op_sm_init (); + glusterd_opinfo_init (); memcpy(conf->uuid, glusterd_uuid, sizeof (uuid_t)); -- cgit