From c18782bc91bb028fe206996a7ef0075beabdf067 Mon Sep 17 00:00:00 2001 From: Sanju Rakonde Date: Tue, 16 Jun 2020 18:03:21 +0530 Subject: glusterd: add-brick command failure Problem: add-brick operation is failing when replica or disperse count is not mentioned in the add-brick command. Reason: with commit a113d93 we are checking brick order while doing add-brick operation for replica and disperse volumes. If replica count or disperse count is not mentioned in the command, the dict get is failing and resulting add-brick operation failure. fixes: #1306 Change-Id: Ie957540e303bfb5f2d69015661a60d7e72557353 Signed-off-by: Sanju Rakonde --- xlators/mgmt/glusterd/src/glusterd-utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 c5303d8a8cb..05346916968 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -858,6 +858,7 @@ int32_t glusterd_add_shd_to_dict(glusterd_volinfo_t *volinfo, dict_t *dict, int32_t count); int32_t -glusterd_check_brick_order(dict_t *dict, char *err_str, int32_t type); +glusterd_check_brick_order(dict_t *dict, char *err_str, int32_t type, + int32_t sub_count); #endif -- cgit