Home | History | Annotate | Download | only in orig

Lines Matching full:busy

1127 ** to the connections busy-handler callback. The argument is of type (void **)
1130 ** busy-handler, this function should be invoked with the second (void *) in
2323 ** KEYWORDS: {busy-handler callback} {busy handler}
2334 ** ^If the busy callback is NULL, then [SQLITE_BUSY]
2335 ** is returned immediately upon encountering the lock. ^If the busy callback
2338 ** ^The first argument to the busy handler is a copy of the void* pointer which
2340 ** the busy handler callback is the number of times that the busy handler has
2342 ** busy callback returns 0, then no additional attempts are made to
2348 ** The presence of a busy handler does not guarantee that it will be invoked
2349 ** when there is lock contention. ^If SQLite determines that invoking the busy
2352 ** busy handler.
2359 ** invoke the busy handlers, neither will make any progress. Therefore,
2364 ** ^The default busy callback is NULL.
2366 ** ^(There can only be a single busy handler defined for each
2367 ** [database connection]. Setting a new busy handler clears any
2370 ** busy handler and thus clear any previously set busy handler.
2372 ** The busy callback should not take any actions which modify the
2373 ** database connection that invoked the busy handler. In other words,
2374 ** the busy handler is not reentrant. Any such actions
2377 ** A busy handler must not close the database connection
2378 ** or [prepared statement] that invoked the busy handler.
2383 ** CAPI3REF: Set A Busy Timeout
2386 ** ^This routine sets a [sqlite3_busy_handler | busy handler] that sleeps
2394 ** turns off all busy handlers.
2396 ** ^(There can only be a single busy handler for a particular
2397 ** [database connection] at any given moment. If another busy handler
2399 ** this routine, that other busy handler is cleared.)^
7327 ** the [sqlite3_busy_handler | busy-handler function]
7329 ** busy-handler returns non-zero before the lock is available, then
7716 ** in the log were checkpointed. ^The [busy-handler callback]
7723 ** [sqlite3_busy_handler|busy-handler callback]) until there is no
7732 ** [busy-handler callback])
7757 ** busy-handler configured, it will not be invoked in this case.
7761 ** obtained immediately, and a busy-handler is configured, it is invoked and
7762 ** the writer lock retried until either the busy-handler returns 0 or the lock
7763 ** is successfully obtained. ^The busy-handler is also invoked while waiting for
7764 ** database readers as described above. ^If the busy-handler returns 0 before
9836 ** An instance of the following structure is used to store the busy-handler
9839 ** The sqlite.busyHandler member of the sqlite struct contains the busy
9841 ** handle is passed a pointer to sqlite.busyHandler. The busy-handler
9846 int (*xFunc)(void *,int); /* The busy callback */
9847 void *pArg; /* First arg to busy callback */
9848 int nBusy; /* Incremented with each busy call */
11714 u8 busy; /* TRUE if currently initializing */
11766 BusyHandler busyHandler; /* Busy callback */
11769 int busyTimeout; /* Busy handler timeout, in msec */
28199 ** handle that precludes the requested lock, return BUSY.
28993 /* didn't get, must be busy */
29434 ** handle that precludes the requested lock, return BUSY.
33166 ** otherwise return BUSY (if lock file) or CANTOPEN for the conch file
33358 /* If the lock failed (busy):
42993 int (*xBusy)(void*), /* Function to call when busy */
43695 int (*xBusyHandler)(void*); /* Function to call when busy */
46562 ** Set the busy handler function.
46564 ** The pager invokes the busy-handler if sqlite3OsLock() returns
46567 ** lock. It does *not* invoke the busy handler when upgrading from
46578 ** If the busy-handler callback returns non-zero, the lock is
46584 int (*xBusyHandler)(void *), /* Pointer to busy-handler function */
46790 ** the busy callback if the lock is currently not available. Repeat
46791 ** until the busy callback returns false or until the attempt to
46802 ** already held), or one of the transitions that the busy-handler
48615 ** The busy-handler is not invoked if another connection already
48622 ** busy-handler callback can be used when upgrading to the EXCLUSIVE
51907 ** busy-handler function. Invoke it and retry the lock until either the
51908 ** lock is successfully obtained or the busy-handler returns 0.
51912 int (*xBusy)(void*), /* Function to call when busy */
51998 int (*xBusy)(void*), /* Function to call when busy */
52026 /* EVIDENCE-OF: R-62920-47450 The busy-handler callback is never invoked
52485 ** then convert BUSY errors to WAL_RETRY. If recovery is known to
52486 ** be running, convert BUSY to BUSY_RECOVERY. There is a race here
53009 assert( (rc&0xff)!=SQLITE_BUSY ); /* BUSY not possible when useWal==1 */
53279 ** If parameter xBusy is not NULL, it is a pointer to a busy-handler
53285 int (*xBusy)(void*), /* Function to call when busy */
53296 int (*xBusy2)(void*) = xBusy; /* Busy handler for eMode2 */
53301 /* EVIDENCE-OF: R-62920-47450 The busy-handler callback is never invoked
53315 ** EVIDENCE-OF: R-53820-33897 Even if there is a busy-handler configured,
53329 ** immediately, and a busy-handler is configured, it is invoked and the
53330 ** writer lock retried until either the busy-handler returns 0 or the
56588 ** Invoke the busy handler for a btree.
57586 ** and the database was previously unlocked, then invoke the busy handler
57588 ** invoke the busy handler - just return SQLITE_BUSY. SQLITE_BUSY is
57595 ** no progress. By returning SQLITE_BUSY and not invoking the busy callback
67912 ** that the correct busy-handler callback is invoked if required.
69301 assert( v->db->init.busy==0 );
71013 assert( db->init.busy==0 );
71517 if( db->xProfile && !db->init.busy && p->zSql ){
72174 "bind on a busy prepared statement: [%s]", p->zSql);
78109 assert( db->init.busy==0 );
78110 db->init.busy = 1;
78116 db->init.busy = 0;
81780 ** skip it. If the first (pSorter->nTask-1) sub-tasks are all still busy,
84207 }else if( no_such_func && pParse->db->init.busy==0 ){
92443 if( pFix->pParse->db->init.busy ){
92712 if( db->init.busy || IN_DECLARE_VTAB ){
92926 if( pParse->nTableLock>0 && db->init.busy==0 ){
92958 if( db->init.busy==0 ) sqlite3VdbeChangeP5(v, 1);
93540 if( db->init.busy ) {
93551 assert( db->init.iDb==0 || db->init.busy );
93566 if( !pParse->db->init.busy && pParse->nested==0
93706 assert( !db->init.busy || CORRUPT_DB );
93751 if( !db->init.busy && (v = sqlite3GetVdbe(pParse))!=0 ){
94020 if( !sqlite3ExprIsConstantOrFunction(pSpan->pExpr, db->init.busy) ){
94233 u8 initbusy = db->init.busy;
94518 assert( db->init.busy==0 );
94606 ** this is a temporary table or db->init.busy==1. When db->init.busy==1
94636 assert( !db->init.busy || !pSelect );
94638 /* If the db->init.busy is 1 it means we are reading the SQL off the
94644 if( db->init.busy ){
94685 if( !db->init.busy ){
94823 if( db->init.busy ){
95719 if( !db->init.busy ){
95755 && db->init.busy==0
95796 if( !db->init.busy ){
95806 assert( !db->init.busy );
95960 if( !db->init.busy && !sqlite3LocateCollSeq(pParse, zColl) ){
96059 if( db->init.busy ){
96154 if( db->init.busy || pTblName==0 ){
107549 static const char *azCol[] = { "busy", "log", "checkpointed" };
107604 ** if one is set. If no busy handler or a different busy handler is set
107813 ** But because db->init.busy is set to 1, no VDBE code is generated
107821 assert( db->init.busy );
108064 assert( db->init.busy );
108139 assert( db->init.busy==0 );
108141 db->init.busy = 1;
108165 db->init.busy = 0;
108181 if( !db->init.busy ){
108412 if( db->init.busy==0 ){
114591 if( db->init.busy && iDb!=1 ){
114602 if( db->init.busy==0 && pName2->n==0 && pTab
114646 assert( !db->init.busy );
114761 if( !db->init.busy ){
114780 if( db->init.busy ){
117152 if( !db->init.busy ){
126156 && pParse->db->init.busy==0
131995 schemaChange = (db->flags & SQLITE_InternChanges)!=0 && db->init.busy==0;
132009 if( (db->flags&SQLITE_InternChanges)!=0 && db->init.busy==0 ){
132187 ** This routine implements a busy callback that sleeps and tries
132194 int count /* Number of times table has been busy */
132232 ** Invoke the given busy handler.
132251 ** This routine sets the busy callback for an Sqlite database to the
132305 ** This routine installs a default busy handler that waits for the
133052 ** sequence. If so, and there are active VMs, return busy. If there
134512 db->init.busy = db->init.imposterTable = va_arg(ap,int);
134514 if( db->init.busy==0 && db->init.newTnum>0 ){
134754 ** (call it pOther) in the same process was busy using the same shared