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);
162918 int iRoot; /* Index of root in pWriter->aNodeWriter */
162922 /* Set iRoot to the index in pWriter->aNodeWriter[] of the output segment
162923 ** root node. If the segment fits entirely on a single leaf node, iRoot
162924 ** will be set to 0. If the root node is the parent of the leaves, iRoot
162926 for(iRoot=FTS_MAX_APPENDABLE_HEIGHT-1; iRoot>=0; iRoot--){
162927 NodeWriter *pNode = &pWriter->aNodeWriter[iRoot];
162936 if( iRoot<0 ) return;
162953 if( iRoot==0 ){
162962 iRoot = 1;
162964 pRoot = &pWriter->aNodeWriter[iRoot];
162967 for(i=0; i<iRoot; i++){
176831 u32 iRoot = rbuGetU32(&aBuf[52]) ? 1 : 0;
176832 rbuPutU32(&aBuf[52], iRoot); /* largest root page number */
178041 u32 iRoot = (u32)sqlite3_column_int64(pCsr->pStmt, 1);
178047 rc = sqlite3PagerGet(pPager, iRoot, &pCsr->aPage[0].pPg, 0);
178048 pCsr->aPage[0].iPgno = iRoot;
184573 u32 iRoot, /* Begin the search at this node */
184580 JsonNode *pRoot = &pParse->aNode[iRoot];
184608 return jsonLookupStep(pParse, iRoot+j+1, &zPath[i], pApnd, pzErr);
184614 iRoot += pRoot->u.iAppend;
184615 pRoot = &pParse->aNode[iRoot];
184627 pRoot = &pParse->aNode[iRoot];
184628 pRoot->u.iAppend = iStart - iRoot;
184654 iRoot += pRoot->u.iAppend;
184655 pRoot = &pParse->aNode[iRoot];
184659 return jsonLookupStep(pParse, iRoot+j, zPath, pApnd, pzErr);
184668 pRoot = &pParse->aNode[iRoot];
184669 pRoot->u.iAppend = iStart - iRoot;
184991 u32 iRoot;
185003 iRoot = iTarget;
185040 pParse->aNode[iRoot].jnFlags |= JNODE_APPEND;
185041 pParse->aNode[iRoot].u.iAppend = iStart - iRoot;
185042 iRoot = iStart;