From 828b23510f5cc1ded5642c161e46e575ec303616 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Thu, 21 May 2009 11:23:50 +0100 Subject: [PATCH] add rollback to release locks (we should create a set transaction read_only method in fpdb_db) --- pyfpdb/fpdb_import.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/fpdb_import.py b/pyfpdb/fpdb_import.py index a3bdb3cc..33ab49be 100644 --- a/pyfpdb/fpdb_import.py +++ b/pyfpdb/fpdb_import.py @@ -235,6 +235,8 @@ class Importer: self.addToDirList = {} self.removeFromFileList = {} + self.fdb.db.rollback() + # This is now an internal function that should not be called directly. def import_file_dict(self, file, site, filter):