diff options
author | Richard Purdie <richard@openedhand.com> | 2007-08-04 21:15:47 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-08-04 21:15:47 +0000 |
commit | 9858ddb9c53135a94c1e29f84bc98d8ade1b738c (patch) | |
tree | b7bac0bb3e76b5fe54b91e64cafdfb1dbb5dcb75 | |
parent | 89853852ed422e5be7e488ea2389fc7760f97d29 (diff) | |
download | poky-9858ddb9c53135a94c1e29f84bc98d8ade1b738c.tar.gz |
bitbake persist_data: Use immediate connection mode
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2362 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | bitbake/lib/bb/persist_data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index 4df335a6a1..6fc96c6ebd 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py | |||
@@ -50,7 +50,7 @@ class PersistData: | |||
50 | self.cachefile = os.path.join(self.cachedir,"bb_persist_data.sqlite3") | 50 | self.cachefile = os.path.join(self.cachedir,"bb_persist_data.sqlite3") |
51 | bb.msg.debug(1, bb.msg.domain.PersistData, "Using '%s' as the persistent data cache" % self.cachefile) | 51 | bb.msg.debug(1, bb.msg.domain.PersistData, "Using '%s' as the persistent data cache" % self.cachefile) |
52 | 52 | ||
53 | self.connection = sqlite3.connect(self.cachefile, timeout=5, isolation_level=None) | 53 | self.connection = sqlite3.connect(self.cachefile, timeout=5, isolation_level="IMMEDIATE") |
54 | 54 | ||
55 | def addDomain(self, domain): | 55 | def addDomain(self, domain): |
56 | """ | 56 | """ |
@@ -85,6 +85,7 @@ class PersistData: | |||
85 | self.connection.execute("UPDATE %s SET value=? WHERE key=?;" % domain, [value, key]) | 85 | self.connection.execute("UPDATE %s SET value=? WHERE key=?;" % domain, [value, key]) |
86 | else: | 86 | else: |
87 | self.connection.execute("INSERT into %s(key, value) values (?, ?);" % domain, [key, value]) | 87 | self.connection.execute("INSERT into %s(key, value) values (?, ?);" % domain, [key, value]) |
88 | self.connection.commit() | ||
88 | 89 | ||
89 | def delValue(self, domain, key): | 90 | def delValue(self, domain, key): |
90 | """ | 91 | """ |