From 913d4f47728b8425282853771276fff8fcc66f4b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 15 Jul 2006 05:14:39 +0000 Subject: [PATCH] * src/GrampsDb/_GrampsBSDDB.py: disable TXN for readonly dbs svn: r7028 --- ChangeLog | 1 + src/GrampsDb/_GrampsBSDDB.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 514069117..d638bab57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2006-07-14 Don Allingham + * src/GrampsDb/_GrampsBSDDB.py: disable TXN for readonly dbs * src/DbLoader.py (DbLoader.read_file): handle DBAccessError 2006-07-12 Brian Matherly diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 24d889266..360705ce8 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -288,6 +288,8 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback): self.close() self.readonly = mode == "r" + if self.readonly: + self.UseTXN = False callback(12)