Lines Matching defs:locked

760 #define SQLITE_BUSY         5   /* The database file is locked */
761 #define SQLITE_LOCKED 6 /* A table in the database is locked */
3038 ** or process has the table locked.
3095 ** for a specified amount of time when a table is locked. ^The handler
9235 ** ^The source database is read-locked only while it is being read;
9236 ** it is not locked continuously for the entire backup operation.
9331 ** ^Because the source database is not locked between calls to
9442 ** has locked the required resource is stored internally. ^After an
37898 ** a locked and an unlocked state.
38498 ** byte'. If this is successful, 'shared byte range' is read-locked
38502 ** single randomly selected by from the 'shared byte range' is locked.
39516 /* lock semaphore now but bail out when already locked. */
39619 unsigned long long retRangeStart; /* nbr of 1st byte locked if successful */
39634 const char *path, /* Name of the file to be locked or unlocked */
39636 unsigned long long offset, /* First byte to be locked */
41386 ** If the DMS cannot be locked because this is a readonly_shm=1
41803 unixShm *p; /* The shared memory being locked */
42446 ** that does not need to be locked. */
42497 ** that does not need to be locked. */
48869 int ofst, /* Offset to first byte to be locked/unlocked */
48961 ** If the DMS cannot be locked because this is a readonly_shm=1
49151 winShm *p = pDbFd->pShm; /* The shared memory being locked */
49234 ** also mark the local connection as being locked.
55656 ** state - the file may or may not be locked and the database size is
57886 ** locked. (2) we know that the original page content is fully synced
60675 int locked = 0; /* True if some process holds a RESERVED lock */
60685 rc = sqlite3OsCheckReservedLock(pPager->fd, &locked);
60686 if( rc==SQLITE_OK && !locked ){
64590 ** locked by the caller. The caller is guaranteed to have locked the
64591 ** WAL_WRITE_LOCK byte, and may have also locked the WAL_CKPT_LOCK byte.
64592 ** If successful, the same bytes that are locked here are unlocked before
66084 assert( pWal->readLock<0 ); /* Not currently locked */
67916 u8 locked; /* True if db currently has pBt locked */
68307 ** p->locked boolean to true.
68310 assert( p->locked==0 );
68316 p->locked = 1;
68321 ** clear the p->locked boolean.
68325 assert( p->locked==1 );
68331 p->locked = 0;
68345 ** To avoid deadlocks, multiple Btrees are locked in the same order
68348 ** which need to be locked after p. If we cannot get a lock on
68365 assert( !p->locked || p->wantToLock>0 );
68373 assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db );
68377 if( p->locked ) return;
68396 p->locked = 1;
68408 assert( !pLater->locked || pLater->wantToLock>0 );
68409 if( pLater->locked ){
68444 assert( p->sharable==0 || p->locked==0 || p->wantToLock>0 );
68445 assert( p->sharable==0 || p->locked==0 || p->db==p->pBt->db );
68446 assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->pBt->mutex) );
68447 assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->db->mutex) );
68449 return (p->sharable==0 || p->locked);
68544 return p->sharable==0 || p->locked==1;
71486 assert( p->wantToLock==0 && p->locked==0 );
71505 assert( p->locked==0 );
71809 ** SQLITE_BUSY is returned if the database is locked. SQLITE_NOMEM
79902 ** handle is not locked in this routine, but it is locked in
80132 /* If the destination database has not yet been locked (i.e. if this
80142 /* Lock the destination database, if it is not locked already. */
84454 ** Unlock all of the btrees previously locked by a call to sqlite3VdbeEnter().
98258 ** P4 contains a pointer to the name of the table being locked. This is only
98272 sqlite3VdbeError(p, "database table is locked: %s", z);
116880 sqlite3_snprintf(sizeof(zErr),zErr, "database %s is locked", zName);
117490 int iDb; /* The database containing the table to be locked */
117491 Pgno iTab; /* The root page of the table to be locked */
117499 ** The table to be locked has root page iTab and is found in database iDb.
117509 Pgno iTab, /* Root page number of the table to be locked */
117511 const char *zName /* Name of the table to be locked */
117545 Pgno iTab, /* Root page number of the table to be locked */
117547 const char *zName /* Name of the table to be locked */
117555 ** Code an OP_TableLock instruction for each table locked by the
137884 sqlite3ErrorWithMsg(db, rc, "database schema is locked: %s", zDb);
138009 ** locked the sqlite3_schema table, return SQLITE_LOCKED. If any other error
150115 ** If a disconnect is attempted while a virtual table is locked,
175024 /* SQLITE_BUSY */ "database is locked",
175025 /* SQLITE_LOCKED */ "database table is locked",