You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2015/09/11 03:27:42 UTC

[11/50] usergrid git commit: Update migration script logging.

Update migration script logging.


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/882aa3a7
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/882aa3a7
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/882aa3a7

Branch: refs/heads/USERGRID-909
Commit: 882aa3a733e5ca27ddd05bed4a4c71c2b7c267e3
Parents: a4a8b1e
Author: Michael Russo <mi...@gmail.com>
Authored: Tue Sep 1 15:31:37 2015 -0700
Committer: Michael Russo <mi...@gmail.com>
Committed: Tue Sep 1 15:31:37 2015 -0700

----------------------------------------------------------------------
 stack/scripts/migrate_entity_data.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/882aa3a7/stack/scripts/migrate_entity_data.py
----------------------------------------------------------------------
diff --git a/stack/scripts/migrate_entity_data.py b/stack/scripts/migrate_entity_data.py
index 233e693..66a9dd0 100644
--- a/stack/scripts/migrate_entity_data.py
+++ b/stack/scripts/migrate_entity_data.py
@@ -176,7 +176,7 @@ class Migrate:
                     index_mapping_updated = self.is_index_mapping_updated()
                     if index_mapping_updated:
                         break
-            
+
             # Perform system re-index (it will grab date from input if provided)
             job = self.start_reindex()
             self.metrics['reindex_start'] = get_current_time()
@@ -352,17 +352,17 @@ class Migrate:
     def is_index_mapping_updated(self):
         status = self.check_data_migration_status()
         if status is not None:
-            migration_system_version = status['data'][PLUGIN_INDEX_MAPPING]
+            index_mapping_version = status['data'][PLUGIN_INDEX_MAPPING]
 
-            if migration_system_version == TARGET_INDEX_MAPPING_VERSION:
+            if index_mapping_version == TARGET_INDEX_MAPPING_VERSION:
                 self.logger.info('Index Mapping CURRENT, %s=[%s]',
-                                 PLUGIN_MIGRATION_SYSTEM,
-                                 migration_system_version)
+                                 PLUGIN_INDEX_MAPPING,
+                                 index_mapping_version)
                 return True
             else:
                 self.logger.info('Index Mapping OLD, %s=[%s]',
-                                 PLUGIN_MIGRATION_SYSTEM,
-                                 migration_system_version)
+                                 PLUGIN_INDEX_MAPPING,
+                                 index_mapping_version)
         return False
 
     def check_data_migration_status(self):