Commit 9d14ea1b authored by Julien Muchembled's avatar Julien Muchembled

importer: fix replication (as source) once import is finished

This fixes up commit be839e92.
parent c58d4862
...@@ -509,6 +509,7 @@ class ImporterDatabaseManager(DatabaseManager): ...@@ -509,6 +509,7 @@ class ImporterDatabaseManager(DatabaseManager):
" your configuration to use the native backend and restart.") " your configuration to use the native backend and restart.")
self._import = None self._import = None
for x in """getObject getReplicationTIDList getReplicationObjectList for x in """getObject getReplicationTIDList getReplicationObjectList
_fetchObject
""".split(): """.split():
setattr(self, x, getattr(self.db, x)) setattr(self, x, getattr(self.db, x))
...@@ -674,6 +675,9 @@ class ImporterDatabaseManager(DatabaseManager): ...@@ -674,6 +675,9 @@ class ImporterDatabaseManager(DatabaseManager):
length, partition) length, partition)
return r return r
def _fetchObject(*_):
raise AssertionError
def getObjectHistory(self, *args, **kw): def getObjectHistory(self, *args, **kw):
raise BackendNotImplemented(self.getObjectHistory) raise BackendNotImplemented(self.getObjectHistory)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment