chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1274606
)
Don't attempt to set the database version if TRACKDB_READ_ONLY.
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 24 May 2009 11:50:07 +0000
(12:50 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 24 May 2009 11:50:07 +0000
(12:50 +0100)
lib/trackdb.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/trackdb.c
b/lib/trackdb.c
index e1bbfc881bbd81ccfbedf6a72d1d1f17b46a89f9..83a67af3f1a499f9fb28677bff087993ecc35d46 100644
(file)
--- a/
lib/trackdb.c
+++ b/
lib/trackdb.c
@@
-472,7
+472,7
@@
void trackdb_open(int flags) {
trackdb_noticeddb = open_db("noticed.db",
DB_DUPSORT, DB_BTREE, dbflags, 0666);
trackdb_scheduledb = open_db("schedule.db", 0, DB_HASH, dbflags, 0666);
- if(!trackdb_existing_database) {
+ if(!trackdb_existing_database
&& !(flags & TRACKDB_READ_ONLY)
) {
/* Stash the database version */
char buf[32];