Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
401b20b7
Commit
401b20b7
authored
Jan 22, 2016
by
Hugo Beauzée-Luyssen
Browse files
SqliteConnection: Remove useless call to sqlite_busy_timeout
parent
e076ad05
Changes
1
Show whitespace changes
Inline
Side-by-side
src/database/SqliteConnection.cpp
View file @
401b20b7
...
...
@@ -50,9 +50,6 @@ SqliteConnection::Handle SqliteConnection::getConn()
auto
res
=
sqlite3_open
(
m_dbPath
.
c_str
(),
&
dbConnection
);
if
(
res
!=
SQLITE_OK
)
throw
std
::
runtime_error
(
"Failed to connect to database"
);
res
=
sqlite3_busy_timeout
(
dbConnection
,
500
);
if
(
res
!=
SQLITE_OK
)
LOG_WARN
(
"Failed to enable sqlite busy timeout"
);
sqlite
::
Statement
s
(
dbConnection
,
"PRAGMA foreign_keys = ON"
);
s
.
execute
();
while
(
s
.
row
()
!=
nullptr
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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