--- 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()