From 36679da16e5a094bbeb29f55806be4e9d38e6500 Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Fri, 5 Aug 2016 21:17:01 +0200 Subject: [PATCH] Actually update the counter. --- st2common/st2common/models/db/__init__.py | 1 + 1 file changed, 1 insertion(+) 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)