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:
parent
f076c86bb4
commit
75c5dbc29a
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue