From eedddaa7ec13f951180ff448c62ffb413913bbd7 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 28 Aug 2020 16:03:54 +0530 Subject: cluster/ec: Track heal statistics in shd With this change we should be able to inspect number of heals attempted and completed by each shd. fixes: #1453 Change-Id: I10f5d86efcc0a8e4d648da808751d37725682c39 Signed-off-by: Pranith Kumar K --- xlators/cluster/ec/src/ec-types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/cluster/ec/src/ec-types.h') diff --git a/xlators/cluster/ec/src/ec-types.h b/xlators/cluster/ec/src/ec-types.h index 90da328e641..de9b89bb2c9 100644 --- a/xlators/cluster/ec/src/ec-types.h +++ b/xlators/cluster/ec/src/ec-types.h @@ -626,6 +626,11 @@ struct _ec_statistics { requests. (Basically memory allocation errors). */ } stripe_cache; + struct { + gf_atomic_t attempted; /*Number of heals attempted on + files/directories*/ + gf_atomic_t completed; /*Number of heals complted on files/directories*/ + } shd; }; struct _ec { -- cgit