server/sources/native.py
branch3.5
changeset 2967 e7d348134006
parent 2955 6bb5025c9fc7
parent 2959 daabb9bc5233
child 3041 782fa7566a22
--- a/server/sources/native.py	Fri Aug 21 15:07:13 2009 +0200
+++ b/server/sources/native.py	Fri Aug 21 15:07:47 2009 +0200
@@ -214,11 +214,13 @@
 
     def restore(self, backupfile, drop):
         """method called to restore a backup of source's data"""
-        self.close_pool_connections()
+        if self.repo.config.open_connections_pools:
+            self.close_pool_connections()
         try:
             self.restore_from_file(backupfile, drop)
         finally:
-            self.open_pool_connections()
+            if self.repo.config.open_connections_pools:
+                self.open_pool_connections()
 
     def init(self):
         self.init_creating()