Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
dea19031
Commit
dea19031
authored
Jun 21, 2018
by
Hugo Beauzée-Luyssen
Browse files
sqlite: Store temporary files in memory on android
parent
d7645bf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/database/SqliteConnection.cpp
View file @
dea19031
...
...
@@ -88,6 +88,11 @@ Connection::Handle Connection::handle()
// would result from a recursive call and a deadlock from here.
setPragma
(
dbConnection
,
"foreign_keys"
,
"1"
);
setPragma
(
dbConnection
,
"recursive_triggers"
,
"1"
);
#ifdef __ANDROID__
// https://github.com/mozilla/mentat/issues/505
// Should solve `Failed to run request <DELETE FROM File WHERE id_file = ?>: disk I/O error(6410)`
setPragma
(
dbConnection
,
"temp_store"
,
"2"
);
#endif
m_conns
.
emplace
(
compat
::
this_thread
::
get_id
(),
std
::
move
(
dbConn
)
);
sqlite3_update_hook
(
dbConnection
,
&
updateHook
,
this
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment