From b71aa0cdb7113dfa7e94720da48cc46c476cde4a Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 4 Apr 2011 14:50:11 +0000 Subject: declare favorite child as int instead of unsigned int In afr_private_t structure favorite child is declared as unsigned int. In init function of afr we set favorite child to -1, if that option is not found in volfile. But favorite child value will be set to a huge value instead of -1 since it is an unsigned int and in statedump file favorite child value is displayed as a huge value instead of -1. Signed-off-by: Raghavendra Bhat Signed-off-by: Anand Avati BUG: 2668 ([glusterfs-3.2.9qa7]: createbench error) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2668 --- xlators/cluster/afr/src/afr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 6e59b15ce..f1b0efbd2 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -68,7 +68,7 @@ typedef struct _afr_private { gf_boolean_t entry_change_log; /* on/off */ int read_child; /* read-subvolume */ - unsigned int favorite_child; /* subvolume to be preferred in resolving + int favorite_child; /* subvolume to be preferred in resolving split-brain cases */ unsigned int data_lock_server_count; -- cgit