* src/GrampsDb/_GrampsBSDDB.py: disable TXN for readonly dbs

svn: r7028
This commit is contained in:
Don Allingham
2006-07-15 05:14:39 +00:00
parent 9a59537daf
commit 0318f728f8
2 changed files with 3 additions and 0 deletions

View File

@@ -288,6 +288,8 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
self.close()
self.readonly = mode == "r"
if self.readonly:
self.UseTXN = False
callback(12)