Lines Matching defs:sharable

67915   u8 sharable;       /* True if we can share pBt with another db */
67921 Btree *pNext; /* List of other sharable Btrees from the same db */
68020 BtShared *pNext; /* Next on a list of sharable BtShared structs */
68340 ** If the object is not sharable, then no mutex is ever required
68362 assert( p->sharable || (p->pNext==0 && p->pPrev==0) );
68366 assert( p->sharable || p->wantToLock==0 );
68371 /* Unless the database is sharable and unlocked, then BtShared.db
68373 assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db );
68375 if( !p->sharable ) return;
68406 assert( pLater->sharable );
68427 if( p->sharable ){
68439 ** B-Tree is not marked as sharable.
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);
68475 if( p && p->sharable ){
68513 if( p && p->sharable &&
68544 return p->sharable==0 || p->locked==1;
68786 ** When writing to an index that resides in a sharable database, the
68811 if( (pBtree->sharable==0)
68923 if( !p->sharable ){
68968 ** (a) The specified Btree object p is connected to a sharable
68969 ** database (one with the BtShared.sharable flag set), and
68993 /* This function should only be called on a sharable b-tree after it
68995 assert( p->sharable );
69047 assert( p->sharable || 0==*ppIter );
71139 p->sharable = 1;
71190 /* In debug mode, we mark all persistent databases as sharable
71195 p->sharable = 1;
71276 /* Add the new BtShared object to the linked list sharable BtShareds.
71279 if( p->sharable ){
71298 /* If the new Btree uses a sharable pBtShared, then link the new
71299 ** Btree into the list of all sharable Btrees for the same connection.
71302 if( p->sharable ){
71306 if( (pSib = db->aDb[i].pBt)!=0 && pSib->sharable ){
71487 if( !p->sharable || removeFromSharingList(pBt) ){
72245 if( p->sharable ){
73177 /* The following assert statements verify that if this is a sharable
73248 if( p->sharable ){
73306 /* Since the BtShared is not sharable, there is no need to
73308 assert( pBtree->sharable==0 );
79578 if( p->sharable ){
79728 ** Return true if the Btree passed as the only argument is sharable.
79731 return p->sharable;
79740 testcase( p->sharable );
79815 ** Non-sharable Btrees (in-memory databases for example), do not have
150240 ** or, if the virtual table is stored in a non-sharable database, then