mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
SQLite: Check for locked database as well as busy databases
This commit is contained in:
parent
1bff4c9537
commit
227d24b64d
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ OperationResult SQLite::Step(sqlite3_stmt* stmt, bool parse_value) {
|
||||||
else
|
else
|
||||||
ret = {ReturnCode::SUCCESS};
|
ret = {ReturnCode::SUCCESS};
|
||||||
}
|
}
|
||||||
else if ( step_status == SQLITE_BUSY )
|
else if ( step_status == SQLITE_BUSY || step_status == SQLITE_LOCKED )
|
||||||
// TODO: this could retry a number of times instead of just failing
|
// TODO: this could retry a number of times instead of just failing
|
||||||
ret = {ReturnCode::TIMEOUT};
|
ret = {ReturnCode::TIMEOUT};
|
||||||
else if ( step_status == SQLITE_CONSTRAINT )
|
else if ( step_status == SQLITE_CONSTRAINT )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue