From 7d22fca1f5c9d792b148bae15e8d26a9c5d63efa Mon Sep 17 00:00:00 2001 From: Sachin Pandit Date: Mon, 12 May 2014 07:54:59 +0530 Subject: glusterd/snapshot : Quorum check should not be made if we perform snapshot status command. Problem : Snapshot status command used to fail as it used to hit the quorum check path. Solution : The condition checking where snapname is fetched based on the presence of snap_volume is moved inside create switch case. And also moved the chunk of code which does the actual quorum check to new function to make the code more readable. Change-Id: Idda2d7c576cdfab3a7d087bfa74bfa616372c20e BUG: 1096700 Signed-off-by: Sachin Pandit Reviewed-on: http://review.gluster.org/7737 Reviewed-by: Rajesh Joseph Tested-by: Gluster Build System Reviewed-by: Raghavendra Bhat Reviewed-by: Kaushal M --- xlators/mgmt/glusterd/src/glusterd-utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index a0fdb196418..6d65b1ffab5 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -799,6 +799,10 @@ int32_t glusterd_snap_quorum_check (dict_t *dict, gf_boolean_t snap_volume, char **op_errstr); +int32_t +glusterd_snap_quorum_check_for_create (dict_t *dict, gf_boolean_t snap_volume, + char **op_errstr); + int32_t glusterd_volume_quorum_check (glusterd_volinfo_t *volinfo, int64_t index, dict_t *dict, char *key_prefix, -- cgit