← Back to team overview

zeitgeist team mailing list archive

[Branch ~zeitgeist/zeitgeist/bluebird] Rev 378: Don't use EXCLUSIVE locking mode, otherwise newly created databases aren't accessible by non-daem...

 

------------------------------------------------------------
revno: 378
committer: Michal Hruby <michal.mhr@xxxxxxxxx>
branch nick: bluebird
timestamp: Mon 2012-01-30 19:14:03 +0100
message:
  Don't use EXCLUSIVE locking mode, otherwise newly created databases aren't accessible by non-daemon connections (maybe read-only connection would work? but python doesn't support that)
modified:
  src/sql-schema.vala


--
lp:zeitgeist
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird

Your team Zeitgeist Framework Team is subscribed to branch lp:zeitgeist.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/sql-schema.vala'
--- src/sql-schema.vala	2012-01-25 13:24:34 +0000
+++ src/sql-schema.vala	2012-01-30 18:14:03 +0000
@@ -98,7 +98,7 @@
                 FileUtils.chmod (Utils.get_database_file_path (), 0600);
 
             exec_query (database, "PRAGMA journal_mode = WAL");
-            exec_query (database, "PRAGMA locking_mode = EXCLUSIVE");
+            exec_query (database, "PRAGMA locking_mode = NORMAL");
 
             // URI
             exec_query (database, """