Home | History | Annotate | Download | only in orig

Lines Matching defs:locked

937 #define SQLITE_BUSY         5   /* The database file is locked */
938 #define SQLITE_LOCKED 6 /* A table in the database is locked */
2406 ** or process has locked.
2471 ** for a specified amount of time when a table is locked. ^The handler
6880 ** ^The source database is read-locked only while it is being read;
6881 ** it is not locked continuously for the entire backup operation.
6972 ** ^Because the source database is not locked between calls to
7082 ** has locked the required resource is stored internally. ^After an
23714 int ofst, /* Offset to first byte to be locked/unlocked */
24096 os2ShmLink *p = pFile->pShmLink; /* The shared memory being locked */
24176 ** also mark the local connection as being locked.
25957 ** a locked and an unlocked state.
26397 ** range' is read-locked and the lock on the 'pending byte' released.
27408 /* lock semaphore now but bail out when already locked. */
27510 unsigned long long retRangeStart; /* nbr of 1st byte locked if successful */
27525 const char *path, /* Name of the file to be locked or unlocked */
27527 unsigned long long offset, /* First byte to be locked */
29148 unixShm *p = pDbFd->pShm; /* The shared memory being locked */
29231 ** also mark the local connection as being locked.
29521 ** that does not need to be locked. */
29574 ** that does not need to be locked. */
34467 int ofst, /* Offset to first byte to be locked/unlocked */
34726 winShm *p = pDbFd->pShm; /* The shared memory being locked */
34805 ** also mark the local connection as being locked.
38601 ** state - the file may or may not be locked and the database size is
40628 ** locked. (2) we know that the original page content is fully synced
43058 int locked = 0; /* True if some process holds a RESERVED lock */
43068 rc = sqlite3OsCheckReservedLock(pPager->fd, &locked);
43069 if( rc==SQLITE_OK && !locked ){
46400 ** locked by the caller. The caller is guaranteed to have locked the
46401 ** WAL_WRITE_LOCK byte, and may have also locked the WAL_CKPT_LOCK byte.
46402 ** If successful, the same bytes that are locked here are unlocked before
47412 assert( pWal->readLock<0 ); /* Not currently locked */
48786 u8 locked; /* True if db currently has pBt locked */
49100 ** p->locked boolean to true.
49103 assert( p->locked==0 );
49109 p->locked = 1;
49114 ** clear the p->locked boolean.
49118 assert( p->locked==1 );
49124 p->locked = 0;
49135 ** To avoid deadlocks, multiple Btrees are locked in the same order
49138 ** which need to be locked after p. If we cannot get a lock on
49157 assert( !p->locked || p->wantToLock>0 );
49165 assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db );
49169 if( p->locked ) return;
49177 p->locked = 1;
49189 assert( !pLater->locked || pLater->wantToLock>0 );
49190 if( pLater->locked ){
49223 assert( p->sharable==0 || p->locked==0 || p->wantToLock>0 );
49224 assert( p->sharable==0 || p->locked==0 || p->db==p->pBt->db );
49225 assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->pBt->mutex) );
49226 assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->db->mutex) );
49228 return (p->sharable==0 || p->locked);
49334 return p->sharable==0 || p->locked==1;
51415 assert( p->wantToLock==0 && p->locked==0 );
51434 assert( p->locked==0 );
51660 ** SQLITE_BUSY is returned if the database is locked. SQLITE_NOMEM
57781 ** handle is not locked in this routine, but it is locked in
57989 /* Lock the destination database, if it is not locked already. */
60529 ** Unlock all of the btrees previously locked by a call to sqlite3VdbeEnter().
64950 ** If an attempt is made to open a locked
70592 ** P4 contains a pointer to the name of the table being locked. This is only
70605 sqlite3SetString(&p->zErrMsg, db, "database table is locked: %s", z);
80670 sqlite3_snprintf(sizeof(zErr),zErr, "database %s is locked", zName);
81238 int iDb; /* The database containing the table to be locked */
81239 int iTab; /* The root page of the table to be locked */
81247 ** The table to be locked has root page iTab and is found in database iDb.
81257 int iTab, /* Root page number of the table to be locked */
81259 const char *zName /* Name of the table to be locked */
81291 ** Code an OP_TableLock instruction for each table locked by the
94217 sqlite3Error(db, rc, "database schema is locked: %s", zDb);
94354 ** locked the sqlite3_master table, return SQLITE_LOCKED. If any other error
101275 ** locked (as there was more than one active statement when the transaction
101566 ** If a disconnect is attempted while a virtual table is locked,
113336 /* SQLITE_BUSY */ "database is locked",
113337 /* SQLITE_LOCKED */ "database table is locked",