From 227d24b64d85d33a120031ece90198a8a124785b Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Tue, 13 May 2025 14:32:07 -0700 Subject: [PATCH] SQLite: Check for locked database as well as busy databases --- src/storage/backend/sqlite/SQLite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/backend/sqlite/SQLite.cc b/src/storage/backend/sqlite/SQLite.cc index 02125d0475..4ec80fa587 100644 --- a/src/storage/backend/sqlite/SQLite.cc +++ b/src/storage/backend/sqlite/SQLite.cc @@ -295,7 +295,7 @@ OperationResult SQLite::Step(sqlite3_stmt* stmt, bool parse_value) { else 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 ret = {ReturnCode::TIMEOUT}; else if ( step_status == SQLITE_CONSTRAINT )