diff options
author | Pranith Kumar K <pkarampu@redhat.com> | 2020-08-28 16:03:54 +0530 |
---|---|---|
committer | Amar Tumballi <amar@kadalu.io> | 2020-09-22 06:21:01 +0000 |
commit | eedddaa7ec13f951180ff448c62ffb413913bbd7 (patch) | |
tree | 674a5f7a3f9189a4ccdc0362a978dacc405c8c07 /xlators/cluster/ec/src/ec-types.h | |
parent | f86b1d4459580c74e516daa6542aa076bbcf131d (diff) |
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 <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/ec/src/ec-types.h')
-rw-r--r-- | xlators/cluster/ec/src/ec-types.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |