Skip to content

lua-ljsqlite3: use sqlite3_close_v2()#1174

Merged
poire-z merged 1 commit into
koreader:masterfrom
poire-z:sqlite3_close_v2
Aug 29, 2020
Merged

lua-ljsqlite3: use sqlite3_close_v2()#1174
poire-z merged 1 commit into
koreader:masterfrom
poire-z:sqlite3_close_v2

Conversation

@poire-z

@poire-z poire-z commented Aug 29, 2020

Copy link
Copy Markdown
Contributor

sqlite3_close() may occasionally return SQLITE_BUSY, which is not expected by frontend code and can cause some crash.
sqlite3_close_v2() always returns SQLITE_OK and has SQLite deal itself with properly closing it later.
Ref: koreader/koreader#5563 (comment)


This change is Reviewable

sqlite3_close() may occasionally return SQLITE_BUSY, which
is not expected by frontend code and can cause some crash.
sqlite3_close_v2() always returns SQLITE_OK and has
SQLite deal itself with properly closing it later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants