Home
last modified time | relevance | path

Searched refs:iRoot (Results 1 – 18 of 18) sorted by relevance

/sqlite-3.40.0/src/
H A Djson.c1143 iRoot += pRoot->u.iAppend; in jsonLookupStep()
1144 pRoot = &pParse->aNode[iRoot]; in jsonLookupStep()
1156 pRoot = &pParse->aNode[iRoot]; in jsonLookupStep()
1175 int iBase = iRoot; in jsonLookupStep()
1218 iRoot += pRoot->u.iAppend; in jsonLookupStep()
1219 pRoot = &pParse->aNode[iRoot]; in jsonLookupStep()
1624 u32 iRoot; in jsonMergePatch() local
1636 iRoot = iTarget; in jsonMergePatch()
1680 assert( pParse->aNode[iRoot].eU==0 || pParse->aNode[iRoot].eU==2 ); in jsonMergePatch()
1684 pParse->aNode[iRoot].u.iAppend = iStart - iRoot; in jsonMergePatch()
[all …]
H A Dvdbevtab.c209 Pgno iRoot = (Pgno)pOp->p2; in bytecodevtabColumn() local
215 if( !IsVirtual(pTab) && pTab->tnum==iRoot ){ in bytecodevtabColumn()
224 if( pIdx->tnum==iRoot ){ in bytecodevtabColumn()
H A Ddbstat.c586 u32 iRoot = (u32)sqlite3_column_int64(pCsr->pStmt, 1); in statNext() local
592 rc = statGetPage(pBt, iRoot, &pCsr->aPage[0]); in statNext()
593 pCsr->aPage[0].iPgno = iRoot; in statNext()
H A Dbtree.c181 Pgno iRoot, /* Root page of b-tree */ in hasSharedCacheTableLock() argument
217 if( pIdx->tnum==iRoot ){ in hasSharedCacheTableLock()
229 iTab = iRoot; in hasSharedCacheTableLock()
268 static int hasReadConflicts(Btree *pBtree, Pgno iRoot){ in hasReadConflicts() argument
271 if( p->pgnoRoot==iRoot in hasReadConflicts()
758 static int saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept){ in saveAllCursors() argument
763 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break; in saveAllCursors()
765 if( p ) return saveCursorsOnList(p, iRoot, pExcept); in saveAllCursors()
777 Pgno iRoot, /* Only save cursor with this iRoot. Save all if zero */ in saveCursorsOnList() argument
781 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){ in saveCursorsOnList()
H A Dselect.c7732 Pgno iRoot = pTab->tnum; /* Root page of scanned b-tree */ in sqlite3Select() local
7759 iRoot = pBest->tnum; in sqlite3Select()
7764 sqlite3VdbeAddOp4Int(v, OP_OpenRead, iCsr, (int)iRoot, iDb, 1); in sqlite3Select()
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_tree.c549 if( p->iRoot ){ in dump_tree_contents()
832 pDb->treehdr.root.iRoot = iNew; in treeUpdatePtr()
933 pDb->treehdr.root.iRoot = iRoot; in treeInsert()
1091 pDb->treehdr.root.iRoot = 0; in lsmTreeMakeOld()
1466 if( p->iRoot ){ in treeInsertEntry()
1523 if( p->iRoot==0 ){ in treeInsertEntry()
1648 db->treehdr.root.iRoot = iNewptr; in treeDeleteEntry()
1985 iNodePtr = pRoot->iRoot; in lsmTreeCursorSeek()
2212 iNodePtr = pRoot->iRoot; in lsmTreeCursorEnd()
2308 pMark->iRoot = pDb->treehdr.root.iRoot; in lsmTreeMark()
[all …]
H A Dlsm_sorted.c986 assert( pSeg->iRoot ); in btreeCursorNew()
1594 if( pPtr[1].pSeg->iRoot ){ in segmentPtrFwdPointer()
1780 iPg = (int)pSeg->iRoot; in seekInBtree()
1862 if( pPtr->pSeg->iRoot ){ in seekInSegment()
3483 int iPg = (int)pSeg->iRoot; in mergeWorkerLoadHierarchy()
4420 pLinked->iRoot = 0; in sortedNewToplevel()
4646 assert( pSeg->iRoot>0 ); in sortedBtreeGobble()
5473 LsmPgno iRoot = pSeg->iRoot; in segToString() local
5483 if( iRoot ){ in segToString()
5492 if( iRoot ){ in segToString()
[all …]
H A DlsmInt.h236 u32 iRoot; /* Offset of root node in shm file */ member
279 u32 iRoot; member
407 LsmPgno iRoot; /* Root page number (if any) */ member
H A Dlsm_ckpt.c315 ckptAppend64(p, piOut, pSeg->iRoot, pRc); in ckptExportSegment()
510 assert( pSegment->nSize==0 && pSegment->iRoot==0 ); in ckptNewSegment()
513 pSegment->iRoot = ckptGobble64(aIn, piIn); in ckptNewSegment()
H A Dlsm_main.c436 pSeg->iFirst, pSeg->iLastPg, pSeg->iRoot, pSeg->nSize in lsmAppendSegmentList()
H A Dlsm_file.c1847 || fsPageRedirects(pFS, p, p->iRoot) in fsSegmentRedirects()
2453 fsMovePage(pFS, iTo, iFrom, &pSeg->iRoot); in lsmFsMoveBlock()
/sqlite-3.40.0/ext/repair/
H A Dsqlite3_checker.c.in51 int iRoot; local
63 if( Tcl_GetIntFromObj(interp, objv[3], &iRoot) ) return TCL_ERROR;
65 sqlite3_test_control(SQLITE_TESTCTRL_IMPOSTER, db, zSchema, 1, iRoot);
/sqlite-3.40.0/tool/
H A Doffsets.c26 int iRoot; /* Root page of the table */ member
89 p->iRoot = sqlite3_column_int(pStmt , 0); in ofstRootAndColumn()
316 ofstTrace(&g, "# iRoot = %d\n", g.iRoot); in main()
323 ofstWalkPage(&g, g.iRoot); in main()
/sqlite-3.40.0/ext/recover/
H A Dsqlite3recover.c76 u32 iRoot; /* Root page in original database */ member
1065 pNew->iRoot = iRoot; in recoverAddTable()
1169 i64 iRoot = sqlite3_column_int64(pSelect, 0); in recoverWriteSchema1() local
1189 recoverAddTable(p, zTbl, iRoot); in recoverWriteSchema1()
1357 for(pRet=p->pTblList; pRet && pRet->iRoot!=iRoot; pRet=pRet->pNext); in recoverFindTable()
1519 i64 iRoot = 0; in recoverLostAndFoundOnePage() local
1524 if( recoverLostAndFoundFindRoot(p, iPage, &iRoot) ) return; in recoverLostAndFoundOnePage()
1532 sqlite3_bind_int64(pInsert, 1, iRoot); /* rootpgno */ in recoverLostAndFoundOnePage()
1723 i64 iRoot = sqlite3_column_int64(p1->pTbls, 0); in recoverWriteDataStep() local
1724 p1->pTab = recoverFindTable(p, iRoot); in recoverWriteDataStep()
[all …]
/sqlite-3.40.0/test/
H A Dcorrupt.test190 set iRoot [db one {SELECT rootpage FROM sqlite_master WHERE name = 'i1'}]
191 set iOffset [hexio_get_int [hexio_read test.db [expr 12+($iRoot-1)*1024] 2]]
192 set data [hexio_render_int32 [expr $iRoot - 1]]
193 hexio_write test.db [expr ($iRoot-1)*1024 + $iOffset] $data
/sqlite-3.40.0/ext/misc/
H A Dclosure.c664 sqlite3_int64 iRoot; in closureFilter() local
683 iRoot = sqlite3_value_int64(argv[0]); in closureFilter()
716 rc = closureInsertNode(&sQueue, pCur, iRoot, 0); in closureFilter()
/sqlite-3.40.0/ext/fts3/
H A Dfts3_write.c4102 int iRoot; /* Index of root in pWriter->aNodeWriter */ in fts3IncrmergeRelease() local
4110 for(iRoot=FTS_MAX_APPENDABLE_HEIGHT-1; iRoot>=0; iRoot--){ in fts3IncrmergeRelease()
4111 NodeWriter *pNode = &pWriter->aNodeWriter[iRoot]; in fts3IncrmergeRelease()
4120 if( iRoot<0 ) return; in fts3IncrmergeRelease()
4137 if( iRoot==0 ){ in fts3IncrmergeRelease()
4146 iRoot = 1; in fts3IncrmergeRelease()
4148 pRoot = &pWriter->aNodeWriter[iRoot]; in fts3IncrmergeRelease()
4151 for(i=0; i<iRoot; i++){ in fts3IncrmergeRelease()
/sqlite-3.40.0/ext/rbu/
H A Dsqlite3rbu.c4671 u32 iRoot = rbuGetU32(&aBuf[52]) ? 1 : 0; in rbuVfsRead() local
4672 rbuPutU32(&aBuf[52], iRoot); /* largest root page number */ in rbuVfsRead()