diff --git a/st2common/st2common/models/db/__init__.py b/st2common/st2common/models/db/__init__.py index a3f92561d2..05f193e889 100644 --- a/st2common/st2common/models/db/__init__.py +++ b/st2common/st2common/models/db/__init__.py @@ -126,6 +126,7 @@ def cleanup_extra_indexes(model_class): try: c.drop_index(extra_index) LOG.debug('Dropped index %s for model %s.', extra_index, model_class.__name__) + removed_count += 1 except OperationFailure: LOG.warning('Attempt to cleanup index % failed.', extra_index, exc_info=True)