server/sources/native.py
changeset 8947 3bbd416b09ec
parent 8916 2a424950463d
child 9098 5467fb901931
child 9130 0f1504a9fb51
--- a/server/sources/native.py	Wed Apr 24 14:49:49 2013 +0200
+++ b/server/sources/native.py	Fri Apr 26 18:06:44 2013 +0200
@@ -370,8 +370,12 @@
     def backup(self, backupfile, confirm, format='native'):
         """method called to create a backup of the source's data"""
         if format == 'portable':
-            self.repo.fill_schema()
-            self.set_schema(self.repo.schema)
+            # ensure the schema is the one stored in the database: if repository
+            # started in quick_start mode, the file system's one has been loaded
+            # so force reload
+            if self.repo.config.quick_start:
+                self.repo.set_schema(self.repo.deserialize_schema(),
+                                     resetvreg=False)
             helper = DatabaseIndependentBackupRestore(self)
             self.close_source_connections()
             try: