update comment, probably not a sqlite bug
Sqlite's page documenting WAL mode changed in Oct 2016 to mention ways that queries could fail with SQLITE_BUSY. http://web.archive.org/web/20161009044054/http://www.sqlite.org:80/wal.html Probably not cooincidentally, I emailed sqlite-users about such a situation in Feb 2015. https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg90580.html Noone ever replied to me, but at least now I understand why it does that. Since it's documented now, it's no longer a bug.
This commit is contained in:
parent
f8fe393052
commit
0d762acf7e
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ workerThread db tablename jobs = newconn
|
|||
-- Like runSqlite, but more robust.
|
||||
--
|
||||
-- New database connections can sometimes take a while to become usable.
|
||||
-- This may be due to WAL mode recovering after a crash, or perhaps a bug
|
||||
-- like described in blob 500f777a6ab6c45ca5f9790e0a63575f8e3cb88f.
|
||||
-- This may be due to WAL mode recovering after a crash, or perhaps a
|
||||
-- situation like described in blob 500f777a6ab6c45ca5f9790e0a63575f8e3cb88f.
|
||||
-- So, loop until a select succeeds; once one succeeds the connection will
|
||||
-- stay usable.
|
||||
--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue