Home
last modified time | relevance | path

Searched refs:busy (Results 1 – 25 of 47) sorted by relevance

12

/sqlite-3.40.0/test/
H A Dbusy.test11 # This file test the busy handler
17 set testprefix busy
19 do_test busy-1.1 {
27 proc busy x {
33 do_test busy-1.2 {
34 db busy busy
38 do_test busy-1.3 {
41 do_test busy-1.4 {
47 do_test busy-2.1 {
54 do_test busy-2.2 {
[all …]
H A Dlock.test188 db2 busy callback
189 # db2 does not hold a lock so we should get a busy callback here
209 db2 busy callback
210 # We get a busy callback because db2 is not holding a lock
221 db2 busy callback
223 # No busy callback this time because we are holding a lock
235 db2 busy callback
242 # Test the built-in busy timeout handler
245 # milliseconds; Query or change the setting of the busy timeout.
292 # Make sure the busy handler and error messages work when
[all …]
H A Dtkt3093.test14 # Verify that a busy callback waiting on a reserved lock resolves
47 # This will be the busy callback for connection db2. On the first
48 # busy callback, commit the transaction in db. This should clear
50 # busy handler is called a second time, then fail so that we get
60 db2 busy ::busy_callback
H A Dtkt3793.test53 db2 busy {busyhandler db2}
54 db1 busy {busyhandler db1}
85 # the busy-handler. The tests here verify that the correct busy-handler
86 # function is invoked (the busy-handler associated with the database
88 # the [db2] busy-handler was invoked from within the call to sqlite3_step()
H A Dstmtvtab1.test43 SELECT reprep,run,SQL FROM sqlite_stmt WHERE sql LIKE '%INSERT%' AND NOT busy;
50 SELECT reprep,run,SQL FROM sqlite_stmt WHERE sql LIKE '%INSERT%' AND NOT busy;
58 SELECT reprep,run,SQL FROM sqlite_stmt WHERE sql LIKE '%INSERT%' AND NOT busy;
64 SELECT count(*) FROM sqlite_stmt WHERE NOT busy;
79 SELECT * FROM sqlite_stmt WHERE NOT busy;
H A Dbusy2.test11 # This file test the busy handler
136 # Check that even if the busy-handler fails (returns zero) within a
143 proc busy {args} {
148 db busy busy
H A De_walckpt.test240 # EVIDENCE-OF: R-53820-33897 Even if there is a busy-handler configured,
265 # to the second, the busy-handler belonging to [db2] should not be
271 lappend ::write_errors "busy handler called!"
280 db2 busy busy_callback
405 # Register a busy-handler with connection [db].
407 db busy [list busy_handler $mode $busy_handler_mode]
432 # The busy handler is not invoked (see below) and the db reader and
491 # busy-handler callback) until there is no database writer and all
507 # EVIDENCE-OF: R-48107-00250 The busy-handler is also invoked while
545 # log file it blocks (calls the busy-handler callback) until all
[all …]
H A Dshared9.test164 # This test verifies that a bug causing a busy-handler belonging to one
176 db1 busy [list busyhandler db1]
177 db2 busy [list busyhandler db2]
216 # At one point the following would fail, showing that the busy-handler
H A Dwal5.test92 code1 { db busy busyhandler }
119 # held by connection 2. The busy-handler has not yet been invoked.
125 # Now do a blocking-checkpoint. Set the busy-handler up so that connection
314 code1 { db busy busyhandler }
443 db busy xBusyHandler
467 db busy xBusyHandler
H A Dtclsqlite.test45 } {1 {bad option "bogus": must be authorizer, backup, bind_fallback, busy, cache, changes, close, c…
100 set v [catch {db busy 1 2 3} msg]
102 } {1 {wrong # args: should be "db busy CALLBACK"}}
224 # Turn the busy handler on and off
230 db busy busy_callback
231 db busy
234 db busy {}
235 db busy
H A Dvt02.c190 int busy; /* Currently running xBestIndex */ member
739 if( pSelf->busy ){ in vt02BestIndex()
743 pSelf->busy++; in vt02BestIndex()
949 pSelf->busy--; in vt02BestIndex()
H A Dwalprotocol2.test78 # Same again, but with a busy-handler. This time, following the
79 # SQLITE_BUSY_SNAPSHOT error the busy-handler is invoked and then the
H A Dsuperlock.test35 # 5.*: Test that a call to sqlite3demo_superlock() uses the busy handler
37 # And returns SQLITE_BUSY if no busy handler is defined or the busy
H A Dsnapshot_up.test145 db3 busy xBusy
174 db3 busy xBusy
H A Dwalthread.test167 db busy busyhandler
340 db busy busyhandler
366 db busy busyhandler
449 # busy-handler is not required. Disable it to check that this is true.
/sqlite-3.40.0/src/
H A Dtest4.c155 if( threadset[i].busy ){ in tcl_thread_create()
159 threadset[i].busy = 1; in tcl_thread_create()
168 threadset[i].busy = 0; in tcl_thread_create()
204 if( !threadset[i].busy ){ in tcl_thread_wait()
224 p->busy = 0; in test_stop_thread()
284 if( !threadset[i].busy ){ in tcl_thread_argc()
316 if( !threadset[i].busy ){ in tcl_thread_argv()
352 if( !threadset[i].busy ){ in tcl_thread_colname()
388 if( !threadset[i].busy ){ in tcl_thread_result()
419 if( !threadset[i].busy ){ in tcl_thread_error()
[all …]
H A Dtest7.c173 if( threadset[i].busy ){ in tcl_client_create()
177 threadset[i].busy = 1; in tcl_client_create()
186 threadset[i].busy = 0; in tcl_client_create()
224 if( !threadset[i].busy ){ in tcl_client_wait()
244 p->busy = 0; in stop_thread()
317 if( !threadset[i].busy ){ in tcl_client_argc()
349 if( !threadset[i].busy ){ in tcl_client_argv()
385 if( !threadset[i].busy ){ in tcl_client_colname()
423 if( !threadset[i].busy ){ in tcl_client_result()
454 if( !threadset[i].busy ){ in tcl_client_error()
[all …]
H A Dtest_superlock.c189 SuperlockBusy busy = {0, 0, 0}; /* Busy handler wrapper object */ in sqlite3demo_superlock() local
216 busy.xBusy = xBusy; in sqlite3demo_superlock()
217 busy.pBusyArg = pBusyArg; in sqlite3demo_superlock()
218 sqlite3_busy_handler(pLock->db, superlockBusyHandler, (void *)&busy); in sqlite3demo_superlock()
235 rc = superlockWalLock(pLock->db, &busy); in sqlite3demo_superlock()
319 InterpAndScript busy = {0, 0}; in superlock_cmd() local
336 busy.interp = interp; in superlock_cmd()
337 busy.pScript = objv[4]; in superlock_cmd()
341 rc = sqlite3demo_superlock(zPath, zVfs, xBusy, &busy, &pLock); in superlock_cmd()
H A Dprepare.c132 assert( db->init.busy ); in sqlite3InitCallback()
218 db->init.busy = 1; in sqlite3InitOne()
360 assert( db->init.busy ); in sqlite3InitOne()
424 db->init.busy = 0; in sqlite3InitOne()
443 assert( db->init.busy==0 ); in sqlite3Init()
473 if( !db->init.busy ){ in sqlite3ReadSchema()
780 if( db->init.busy==0 ){ in sqlite3Prepare()
788 if( sParse.checkSchema && db->init.busy==0 ){ in sqlite3Prepare()
H A Dbuild.c160 if( db->init.busy ){ in sqlite3FinishCoding()
998 if( db->init.busy ) { in sqlite3TwoPartName()
1056 if( db->init.busy ){ in sqlite3CheckObjectName()
2425 assert( db->init.busy==0 ); in convertToWithoutRowidTable()
2646 if( db->init.busy ){ in sqlite3EndTable()
2773 if( !db->init.busy ){ in sqlite3EndTable()
2916 if( db->init.busy ){ in sqlite3EndTable()
3964 if( !db->init.busy ){ in sqlite3CreateIndex()
3999 && db->init.busy==0 in sqlite3CreateIndex()
4042 if( !db->init.busy ){ in sqlite3CreateIndex()
[all …]
H A Dauth.c114 if( db->init.busy ) return SQLITE_OK; in sqlite3AuthReadCol()
211 if( db->xAuth==0 || db->init.busy || IN_SPECIAL_PARSE ){ in sqlite3AuthCheck()
H A Dtrigger.c154 if( db->init.busy && iDb!=1 ){ in sqlite3BeginTrigger()
165 if( db->init.busy==0 && pName2->n==0 && pTab in sqlite3BeginTrigger()
203 assert( !db->init.busy ); in sqlite3BeginTrigger()
341 assert( !db->init.busy ); in sqlite3FinishTrigger()
350 if( !db->init.busy ){ in sqlite3FinishTrigger()
388 if( db->init.busy ){ in sqlite3FinishTrigger()
H A Dvtab.c464 if( !db->init.busy ){ in sqlite3VtabFinishParse()
835 assert( db->init.busy==0 ); in sqlite3_declare_vtab()
836 initBusy = db->init.busy; in sqlite3_declare_vtab()
837 db->init.busy = 0; in sqlite3_declare_vtab()
886 db->init.busy = initBusy; in sqlite3_declare_vtab()
/sqlite-3.40.0/ext/userauth/
H A Duserauth.c67 if( db->init.busy==0 ){ in userTableExists()
/sqlite-3.40.0/doc/
H A Dwal-lock.md30 fails to obtain the WRITER lock and either invokes the busy-handler callback or

12