diff options
author | Raghavendra G <rgowdapp@redhat.com> | 2018-03-16 12:16:43 +0530 |
---|---|---|
committer | N Balachandran <nbalacha@redhat.com> | 2018-05-07 05:37:06 +0000 |
commit | 01a7d27bbaf12618fde56ca05cf9c953445493f3 (patch) | |
tree | 6f4e4cbfeca22e13c83b44c4c1f935964e68b70c /xlators/cluster/dht/src/dht-common.h | |
parent | 33131131469e18d3ebbdc6ce741c2984dc77b290 (diff) |
cluster/dht: log error only if layout healing is required
selfhealing of directory is invoked on two conditions:
1. no layout on disk or layout has some anomalies (holes/overlaps)
2. mds xattr is not set on the directory
When dht_selfheal_directory is called with a correct layout just to
set mds xattr, we see error msgs complaining about "not able to form
layout on directory", which is misleading as the layout is
correct. So, log this msg only if layout has anomalies.
Change-Id: I4af25246fc3a2450c2426e9902d1a5b372eab125
updates: bz#1543279
BUG: 1543279
Signed-off-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.h')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index 87f60cac3d9..96f7726bc04 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -308,6 +308,7 @@ struct dht_local { uint32_t overlaps_cnt; uint32_t down; uint32_t misc; + uint32_t missing_cnt; dht_selfheal_dir_cbk_t dir_cbk; dht_selfheal_layout_t healer; dht_need_heal_t should_heal; |