[Erp5-report] r18294 - /erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 13 10:31:14 CET 2007


Author: aurel
Date: Thu Dec 13 10:31:14 2007
New Revision: 18294

URL: http://svn.erp5.org?rev=18294&view=rev
Log:
finish hot reindexing must be called after final InventoryModule_reindexMovementList

Modified:
    erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py

Modified: erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py?rev=18294&r1=18293&r2=18294&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py (original)
+++ erp5/trunk/products/ZSQLCatalog/ZSQLCatalog.py Thu Dec 13 10:31:14 2007
@@ -321,7 +321,8 @@
       object_path = self.getPhysicalPath()
       # Activities must be removed in the reverse order they were inserted
       # to make sure removing one does not accidntaly trigger the next one.
-      method_id_list = ('finishHotReindexing', 'runInventoryMethod', 'playBackRecordedObjectList',
+      method_id_list = ('finishHotReindexing', 'runInventoryMethod',
+                        'playBackRecordedObjectList', 'InventoryModule_reindexMovementList'
                         'setHotReindexingState')
       for method_id in method_id_list:
         portal_activities.flush(object_path, method_id=method_id)
@@ -530,8 +531,9 @@
     # Once there is nothing to replay, databases are sync'ed, so the new
     # catalog can become current.
     self.activate(passive_commit=1,
-                  after_method_id=('playBackRecordedObjectList', 'runInventoryMethod'),
-                  after_tag='runInventoryMethod',
+                  after_method_id=('playBackRecordedObjectList',
+                                   'InventoryModule_reindexMovementList'),
+                  after_tag='InventoryModule_reindexMovementList',
                   priority=5).finishHotReindexing(
                       source_sql_catalog_id=source_sql_catalog_id,
                       destination_sql_catalog_id=destination_sql_catalog_id,




More information about the Erp5-report mailing list