aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordan <Dan Kennedy>2025-01-27 11:50:03 +0000
committerdan <Dan Kennedy>2025-01-27 11:50:03 +0000
commit43aad25b1b535f1c8c44ae964bf53e40eb351378 (patch)
treeec100dbfb1530d4108ff295db8a9d503a1808c5d /src/sqliteInt.h
parent2539fb2bc57adebef779a13c18f788e14461f7c8 (diff)
downloadsqlite-43aad25b1b535f1c8c44ae964bf53e40eb351378.tar.gz
sqlite-43aad25b1b535f1c8c44ae964bf53e40eb351378.zip
Add the sqlite3_setlk_timeout() API. For setting the timeout used by SQLITE_ENABLE_SETLK_TIMEOUT blocking locks without also setting the regular retry-based busy-timeout.
FossilOrigin-Name: 4a7eb492797abb47b18b7dfc557aeae43a0dea5b861efc203398d5059b10d131
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index b8c9136a5..aa12b8976 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1744,6 +1744,9 @@ struct sqlite3 {
Savepoint *pSavepoint; /* List of active savepoints */
int nAnalysisLimit; /* Number of index rows to ANALYZE */
int busyTimeout; /* Busy handler timeout, in msec */
+#ifdef SQLITE_ENABLE_SETLK_TIMEOUT
+ int setlkTimeout; /* Blocking lock timeout, in msec */
+#endif
int nSavepoint; /* Number of non-transaction savepoints */
int nStatement; /* Number of nested statement-transactions */
i64 nDeferredCons; /* Net deferred constraints this transaction. */