trivial: add comment re sharder misplaced found stat

Add some clarity to the meaning of the 'misplaced found' stat so it is
not confused with 'num_found'.

Change-Id: Ic7278f3e5c20b9a59cd886df1235f736f67bd078
This commit is contained in:
Alistair Coles 2022-05-12 14:36:36 +01:00
parent f076c86bb4
commit 75c5dbc29a
1 changed files with 2 additions and 0 deletions

View File

@ -1493,6 +1493,8 @@ class ContainerSharder(ContainerSharderConf, ContainerReplicator):
num_found += part_num_found
if num_found:
# the found stat records the number of DBs in which any misplaced
# rows were found, not the total number of misplaced rows
self._increment_stat('misplaced', 'found', statsd=True)
self.logger.debug('Moved %s misplaced objects' % num_found)
self._increment_stat('misplaced', 'success' if success else 'failure')