[yum-git] sqlitecachec.py
Seth Vidal
skvidal at linux.duke.edu
Fri Jan 25 20:42:03 UTC 2008
sqlitecachec.py | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 90c94f14014418119031b272dbab4376c843b617
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Jan 25 15:41:15 2008 -0500
apply patch from Panu Matilainen to setup the db for exclusive lock write
access.
closes rh bug 353171
diff --git a/sqlitecachec.py b/sqlitecachec.py
index 85b602c..7ed5056 100644
--- a/sqlitecachec.py
+++ b/sqlitecachec.py
@@ -31,6 +31,9 @@ class RepodataParserSqlite:
con = sqlite.connect(filename)
if sqlite.version_info[0] > 1:
con.row_factory = sqlite.Row
+ cur = con.cursor()
+ cur.execute("pragma locking_mode = EXCLUSIVE")
+ del cur
return con
def getPrimary(self, location, checksum):
More information about the Yum-cvs-commits
mailing list