Lines Matching refs:SQLITE_BUSY
831 ** SQLITE_BUSY.
940 #define SQLITE_BUSY 5 /* The database file is locked */
1012 #define SQLITE_BUSY_RECOVERY (SQLITE_BUSY | (1<<8))
2088 ** [SQLITE_BUSY].)^</dd>
2331 ** CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors
2337 ** ^If the busy callback is NULL, then [SQLITE_BUSY] or [SQLITE_IOERR_BLOCKED]
2346 ** access the database and [SQLITE_BUSY] or [SQLITE_IOERR_BLOCKED] is returned.
2352 ** handler could result in a deadlock, it will go ahead and return [SQLITE_BUSY]
2361 ** SQLite returns [SQLITE_BUSY] for the first process, hoping that this
2367 ** ^The [SQLITE_BUSY] error is converted to [SQLITE_IOERR_BLOCKED]
2375 ** code is promoted from the relatively benign [SQLITE_BUSY] to
2404 ** [SQLITE_BUSY] or [SQLITE_IOERR_BLOCKED].
3836 ** ^In the legacy interface, the return value will be either [SQLITE_BUSY],
3841 ** ^[SQLITE_BUSY] means that the database engine was unable to acquire the
3888 ** error other than [SQLITE_BUSY] and [SQLITE_MISUSE]. You must call
4880 ** [SQLITE_NOMEM], [SQLITE_BUSY], and [SQLITE_INTERRUPT]) then the
5904 ** SQLITE_BUSY. ^The sqlite3_mutex_try() interface returns [SQLITE_OK]
5916 ** will always return SQLITE_BUSY. The SQLite core only ever uses
6699 ** [SQLITE_NOMEM], [SQLITE_BUSY], [SQLITE_LOCKED], or an
6715 ** [SQLITE_BUSY] is returned to the caller. ^In this case the call to
6763 ** ^A return of [SQLITE_BUSY] or [SQLITE_LOCKED] from sqlite3_backup_step()
7104 ** lock cannot be obtained and SQLITE_BUSY is returned. Even if there is a
7116 ** without blocking any further. SQLITE_BUSY is returned in this case.
7121 ** an SQLITE_BUSY error is encountered when processing one or more of the
7123 ** attached databases and SQLITE_BUSY is returned to the caller. If any other
7126 ** (SQLITE_BUSY or otherwise) is encountered while processing the attached
16889 ** thread holds the mutex and it cannot be obtained, return SQLITE_BUSY.
17073 ** SQLITE_BUSY. The sqlite3_mutex_try() interface returns SQLITE_OK
17348 ** SQLITE_BUSY. The sqlite3_mutex_try() interface returns SQLITE_OK
17363 int rc = SQLITE_BUSY;
17611 ** SQLITE_BUSY. The sqlite3_mutex_try() interface returns SQLITE_OK
17686 rc = SQLITE_BUSY;
17699 rc = SQLITE_BUSY;
17996 ** SQLITE_BUSY. The sqlite3_mutex_try() interface returns SQLITE_OK
18022 int rc = SQLITE_BUSY;
22888 rc = SQLITE_BUSY;
23318 return ( rc == 0 ) ? SQLITE_OK : SQLITE_BUSY;
23706 ** SQLITE_BUSY.
23710 rc = SQLITE_BUSY;
23731 ** lock. If any do, return SQLITE_BUSY right away.
23735 rc = SQLITE_BUSY;
24552 ** a normal expected return code of SQLITE_BUSY or SQLITE_OK
24554 #define IS_LOCK_ERROR(x) ((x != SQLITE_OK) && (x != SQLITE_BUSY))
25201 ** intended to translate a variety of "try again" errors into SQLITE_BUSY
25233 return SQLITE_BUSY;
25241 return SQLITE_BUSY;
25985 rc = SQLITE_BUSY;
26019 if( rc!=SQLITE_BUSY ){
26054 if( rc!=SQLITE_BUSY ){
26066 rc = SQLITE_BUSY;
26087 if( rc!=SQLITE_BUSY ){
26263 ** SQLITE_BUSY would confuse the upper layer (in practice it causes
26553 rc = SQLITE_BUSY;
26782 rc = SQLITE_BUSY;
26944 rc = SQLITE_BUSY;
27056 ** Return SQLITE_OK on success, SQLITE_BUSY on failure.
27084 rc = SQLITE_BUSY;
27215 rc = SQLITE_BUSY;
27289 rc = SQLITE_BUSY;
28267 rc = (rc!=(-1)) ? SQLITE_OK : SQLITE_BUSY;
28684 ** SQLITE_BUSY.
28688 rc = SQLITE_BUSY;
28709 ** lock. If any do, return SQLITE_BUSY right away.
28713 rc = SQLITE_BUSY;
30161 ** will fail and SQLITE_BUSY is returned.
30363 return SQLITE_BUSY;
30527 if( rc==SQLITE_BUSY ){
30549 return SQLITE_BUSY;
30562 return SQLITE_BUSY;
30566 return SQLITE_BUSY;
30583 } while( rc==SQLITE_BUSY && nTries<3 );
30677 rc = SQLITE_BUSY;
30697 rc = SQLITE_BUSY;
30766 rc=SQLITE_CANTOPEN_BKPT; /* SQLITE_BUSY? proxyTakeConch called
30888 return SQLITE_BUSY;
30955 return SQLITE_BUSY;
33083 rc = SQLITE_BUSY;
33397 rc = SQLITE_BUSY;
33670 ** SQLITE_BUSY.
33674 rc = SQLITE_BUSY;
33695 ** lock. If any do, return SQLITE_BUSY right away.
33699 rc = SQLITE_BUSY;
35439 if( rc!=SQLITE_OK && rc!=SQLITE_BUSY ){
37902 ** If the VFS xLock() or xUnlock() returns an error other than SQLITE_BUSY
40948 ** SQLITE_BUSY when trying to upgrade from no-lock to a SHARED lock,
40962 ** retried. If it returns zero, then the SQLITE_BUSY error is
41184 }while( rc==SQLITE_BUSY && pPager->xBusyHandler(pPager->pBusyHandlerArg) );
41499 ** SQLITE_BUSY is returned and no data is written to the database file.
41519 ** be obtained, SQLITE_BUSY is returned.
43213 ** Otherwise, either SQLITE_BUSY or an SQLITE_IOERR_XXX error code is
44311 ** error (SQLITE_BUSY) is returned and the log connection is not closed.
45145 VVA_ONLY( pWal->lockError = (u8)(rc!=SQLITE_OK && rc!=SQLITE_BUSY); )
45161 VVA_ONLY( pWal->lockError = (u8)(rc!=SQLITE_OK && rc!=SQLITE_BUSY); )
45421 ** the necessary locks, this routine returns SQLITE_BUSY.
45967 }while( xBusy && rc==SQLITE_BUSY && xBusy(pBusyArg) );
46059 }else if( rc==SQLITE_BUSY ){
46124 if( rc==SQLITE_BUSY ){
46138 rc = SQLITE_BUSY;
46349 ** I/O error or an SQLITE_BUSY because another process is running
46431 if( rc==SQLITE_BUSY ){
46441 /* This branch is taken when the xShmMap() method returns SQLITE_BUSY.
46444 ** modules may return SQLITE_BUSY due to a race condition in the
46452 }else if( rc==SQLITE_BUSY ){
46488 }else if( rc!=SQLITE_BUSY ){
46520 }else if( rc!=SQLITE_BUSY ){
46526 assert( rc==SQLITE_BUSY || (pWal->readOnly & WAL_SHM_RDONLY)!=0 );
46527 return rc==SQLITE_BUSY ? WAL_RETRY : SQLITE_READONLY_CANTLOCK;
46532 return rc==SQLITE_BUSY ? WAL_RETRY : rc;
46589 testcase( (rc&0xff)==SQLITE_BUSY );
46749 ** returns SQLITE_BUSY in that case and no write transaction is started.
46765 ** SQLITE_BUSY if unable.
46780 rc = SQLITE_BUSY;
46953 }else if( rc!=SQLITE_BUSY ){
46964 assert( (rc&0xff)!=SQLITE_BUSY ); /* BUSY not possible when useWal==1 */
47173 /* Usually this is SQLITE_BUSY meaning that another thread or process
47187 ** other error occurs, this function will return SQLITE_BUSY to the caller.
47193 }else if( rc==SQLITE_BUSY ){
47213 if( rc==SQLITE_OK || rc==SQLITE_BUSY ){
47234 return (rc==SQLITE_OK && eMode!=eMode2 ? SQLITE_BUSY : rc);
50552 ** SQLITE_BUSY is returned if the database is locked. SQLITE_NOMEM
50785 ** invoke the busy handler - just return SQLITE_BUSY. SQLITE_BUSY is
50792 ** no progress. By returning SQLITE_BUSY and not invoking the busy callback
50872 }while( (rc&0xFF)==SQLITE_BUSY && pBt->inTransaction==TRANS_NONE &&
56650 ** are considered fatal except for SQLITE_BUSY and SQLITE_LOCKED.
56653 return (rc!=SQLITE_OK && rc!=SQLITE_BUSY && ALWAYS(rc!=SQLITE_LOCKED));
56792 ** SQLITE_BUSY immediately.
56795 rc = SQLITE_BUSY;
57079 assert( rc!=SQLITE_BUSY && rc!=SQLITE_LOCKED );
59454 assert( p->rc==SQLITE_OK || p->rc==SQLITE_BUSY || p->rc==SQLITE_NOMEM );
60214 assert( rc!=SQLITE_BUSY );
60408 ** lock contention, return SQLITE_BUSY. If SQLITE_BUSY is returned, it
60512 if( rc==SQLITE_BUSY && p->readOnly ){
60514 return SQLITE_BUSY;
60605 return (p->rc==SQLITE_BUSY ? SQLITE_BUSY : SQLITE_OK);
61905 ** or SQLITE_BUSY error.
61908 if( p->rc==SQLITE_BUSY || p->rc==SQLITE_LOCKED ){
61993 || rc==SQLITE_BUSY || rc==SQLITE_MISUSE
63630 ** return SQLITE_BUSY.
64102 assert( p->rc==SQLITE_OK || p->rc==SQLITE_BUSY );
64387 assert( rc==SQLITE_BUSY || rc==SQLITE_OK || rc==SQLITE_ERROR );
64388 if( rc==SQLITE_BUSY ){
64389 p->rc = rc = SQLITE_BUSY;
66169 rc = SQLITE_BUSY;
66231 rc = SQLITE_BUSY;
66244 if( sqlite3VdbeHalt(p)==SQLITE_BUSY ){
66247 p->rc = rc = SQLITE_BUSY;
66331 rc = SQLITE_BUSY;
66338 rc = SQLITE_BUSY;
66348 if( sqlite3VdbeHalt(p)==SQLITE_BUSY ){
66351 p->rc = rc = SQLITE_BUSY;
66416 if( rc==SQLITE_BUSY ){
66418 p->rc = rc = SQLITE_BUSY;
66602 ** SQLITE_BUSY error code.
69028 ** SQLITE_BUSY or not, respectively. Write the number of pages in the
69048 if( rc==SQLITE_BUSY ){
110600 ** If lookaside is already active, return SQLITE_BUSY.
110611 return SQLITE_BUSY;
110861 /* If there are any outstanding VMs, return SQLITE_BUSY. */
110863 sqlite3Error(db, SQLITE_BUSY,
110866 return SQLITE_BUSY;
110873 sqlite3Error(db, SQLITE_BUSY,
110876 return SQLITE_BUSY;
111007 /* SQLITE_BUSY */ "database is locked",
111088 ** returns 0, the operation aborts with an SQLITE_BUSY error.
111226 ** and there are active VMs, then return SQLITE_BUSY. If a function
111233 sqlite3Error(db, SQLITE_BUSY,
111236 return SQLITE_BUSY;
111615 int bBusy = 0; /* True if SQLITE_BUSY has been encountered */
111626 if( rc==SQLITE_BUSY ){
111633 return (rc==SQLITE_OK && bBusy) ? SQLITE_BUSY : rc;
111807 sqlite3Error(db, SQLITE_BUSY,
111809 return SQLITE_BUSY;