[dataimport] massive store in slave mode shouldn't flush metadata
The metadata insertion is to be done only by the master-mode store.
--- 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, ...)