From d7105ba1652e548d9ba893e05f3d1fa29e8ee3b1 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 30 May 2017 14:27:16 +0530 Subject: core: add more information on dictionary usage when you take the 'statedump', it shows the output like below ----- [dict] max-number-of-dict-pairs=13 total-pairs-used=41613 total-dict-used=12629 average-pairs-per-dict=3 ------ Updates #220 Change-Id: I71a7eda3a3cd23edf4483234f22f983923bbb081 Signed-off-by: Amar Tumballi Reviewed-on: https://review.gluster.org/4035 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- libglusterfs/src/dict.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src/dict.h') diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index 0ce6ab8e2e3..bdc003ea373 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -91,6 +91,7 @@ struct _dict { data_pair_t *members_internal; data_pair_t free_pair; gf_boolean_t free_pair_in_use; + uint32_t max_count; }; typedef gf_boolean_t (*dict_match_t) (dict_t *d, char *k, data_t *v, -- cgit