[dataimport] massive store in slave mode shouldn't flush metadata
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 02 Dec 2015 14:57:03 +0100
changeset 11025 5413ab08617d
parent 11024 dc70698dcf6c
child 11026 ce9b3886955d
[dataimport] massive store in slave mode shouldn't flush metadata The metadata insertion is to be done only by the master-mode store.
dataimport/massive_store.py
--- a/dataimport/massive_store.py	Mon Dec 21 12:29:50 2015 +0100
+++ b/dataimport/massive_store.py	Wed Dec 02 14:57:03 2015 +0100
@@ -570,7 +570,8 @@
                 self.on_rollback(exc, etype, data)
             # Clear data cache
             self._data_entities[etype] = []
-        self.flush_meta_data()
+        if not self.slave_mode:
+            self.flush_meta_data()
 
     def flush_meta_data(self):
         """ Flush the meta data (entities table, is_instance table, ...)