Lines Matching refs:iRoot
60553 ** table with root page iRoot. Return 1 if it does and 0 if not.
60555 ** For example, when writing to a table with root-page iRoot via
60558 ** assert( hasSharedCacheTableLock(pBtree, iRoot, 0, WRITE_LOCK) );
60567 ** Instead of a lock on the table/index rooted at page iRoot, the caller may
60573 Pgno iRoot, /* Root page of b-tree */
60574 int isIndex, /* True if iRoot is the root of an index b-tree */
60608 if( pIdx->tnum==(int)iRoot ){
60619 iTab = iRoot;
60644 ** table or index rooted at iRoot because other shared connections are
60649 ** the iRoot table. Except, if the other Btree object has the
60654 ** rooted at page iRoot, one should call:
60656 ** assert( !hasReadConflicts(pBtree, iRoot) );
60658 static int hasReadConflicts(Btree *pBtree, Pgno iRoot){
60661 if( p->pgnoRoot==iRoot
61120 ** the table with root-page iRoot. "Saving the cursor position" means that
61139 static int saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept){
61144 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break;
61146 if( p ) return saveCursorsOnList(p, iRoot, pExcept);
61158 Pgno iRoot, /* Only save cursor with this iRoot. Save all if zero */
61162 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){
124621 int iRoot = pTab->tnum; /* Root page of scanned b-tree */
124646 iRoot = pBest->tnum;
124651 sqlite3VdbeAddOp4Int(v, OP_OpenRead, iCsr, iRoot, iDb, 1);
162930 int iRoot; /* Index of root in pWriter->aNodeWriter */
162934 /* Set iRoot to the index in pWriter->aNodeWriter[] of the output segment
162935 ** root node. If the segment fits entirely on a single leaf node, iRoot
162936 ** will be set to 0. If the root node is the parent of the leaves, iRoot
162938 for(iRoot=FTS_MAX_APPENDABLE_HEIGHT-1; iRoot>=0; iRoot--){
162939 NodeWriter *pNode = &pWriter->aNodeWriter[iRoot];
162948 if( iRoot<0 ) return;
162965 if( iRoot==0 ){
162974 iRoot = 1;
162976 pRoot = &pWriter->aNodeWriter[iRoot];
162979 for(i=0; i<iRoot; i++){
176843 u32 iRoot = rbuGetU32(&aBuf[52]) ? 1 : 0;
176844 rbuPutU32(&aBuf[52], iRoot); /* largest root page number */
178053 u32 iRoot = (u32)sqlite3_column_int64(pCsr->pStmt, 1);
178059 rc = sqlite3PagerGet(pPager, iRoot, &pCsr->aPage[0].pPg, 0);
178060 pCsr->aPage[0].iPgno = iRoot;
184585 u32 iRoot, /* Begin the search at this node */
184592 JsonNode *pRoot = &pParse->aNode[iRoot];
184620 return jsonLookupStep(pParse, iRoot+j+1, &zPath[i], pApnd, pzErr);
184626 iRoot += pRoot->u.iAppend;
184627 pRoot = &pParse->aNode[iRoot];
184639 pRoot = &pParse->aNode[iRoot];
184640 pRoot->u.iAppend = iStart - iRoot;
184666 iRoot += pRoot->u.iAppend;
184667 pRoot = &pParse->aNode[iRoot];
184671 return jsonLookupStep(pParse, iRoot+j, zPath, pApnd, pzErr);
184680 pRoot = &pParse->aNode[iRoot];
184681 pRoot->u.iAppend = iStart - iRoot;
185003 u32 iRoot;
185015 iRoot = iTarget;
185052 pParse->aNode[iRoot].jnFlags |= JNODE_APPEND;
185053 pParse->aNode[iRoot].u.iAppend = iStart - iRoot;
185054 iRoot = iStart;