summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2015-04-30 13:01:16 +1000
committerJoshua Hesketh <josh@nitrotech.org>2015-04-30 13:07:46 +1000
commit1c00340d88e0e757b3cb85772de4dc92111a486f (patch)
tree9f4ea0010b2f2d04f909a5ee6f8dc250a8123b32
parentcbeb7a4fa78d521ee63bd386804f816b698521b2 (diff)
downloadturbo-hipster-1c00340d88e0e757b3cb85772de4dc92111a486f.tar.gz
Only record stats right after migration
Change-Id: Idad9ee4c5b9697245e28d27dc576ad1e9e0556aa
-rw-r--r--turbo_hipster/task_plugins/real_db_upgrade/handle_results.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/turbo_hipster/task_plugins/real_db_upgrade/handle_results.py b/turbo_hipster/task_plugins/real_db_upgrade/handle_results.py
index 4c02fb7..198afe1 100644
--- a/turbo_hipster/task_plugins/real_db_upgrade/handle_results.py
+++ b/turbo_hipster/task_plugins/real_db_upgrade/handle_results.py
@@ -116,7 +116,7 @@ class LogParser(object):
name = m.group(1)
value = int(m.group(2))
- if name in innodb_stats:
+ if name in innodb_stats and name not in migration_stats:
delta = value - innodb_stats[name]
if delta > 0:
migration_stats[name] = delta