Home
last modified time | relevance | path

Searched refs:aRoot (Results 1 – 6 of 6) sorted by relevance

/sqlite-3.40.0/src/
H A Dpragma.c1689 int *aRoot; /* Array of root page numbers of all btrees */ in sqlite3Pragma() local
1716 aRoot = sqlite3DbMallocRawNN(db, sizeof(int)*(cnt+1)); in sqlite3Pragma()
1717 if( aRoot==0 ) break; in sqlite3Pragma()
1719 if( pObjTab ) aRoot[++cnt] = 0; in sqlite3Pragma()
1724 if( HasRowid(pTab) ) aRoot[++cnt] = pTab->tnum; in sqlite3Pragma()
1726 aRoot[++cnt] = pIdx->tnum; in sqlite3Pragma()
1729 aRoot[0] = cnt; in sqlite3Pragma()
1736 sqlite3VdbeAddOp4(v, OP_IntegrityCk, 2, cnt, 1, (char*)aRoot,P4_INTARRAY); in sqlite3Pragma()
H A Danalyze.c189 u32 aRoot[ArraySize(aTable)]; in openStatTable() local
218 aRoot[i] = (u32)pParse->regRoot; in openStatTable()
225 aRoot[i] = pStat->tnum; in openStatTable()
226 sqlite3TableLock(pParse, iDb, aRoot[i], 1, zTab); in openStatTable()
238 sqlite3VdbeAddOp2(v, OP_Clear, (int)aRoot[i], iDb); in openStatTable()
246 sqlite3VdbeAddOp4Int(v, OP_OpenWrite, iStatCur+i, (int)aRoot[i], iDb, 3); in openStatTable()
H A Dbtree.h332 char *sqlite3BtreeIntegrityCheck(sqlite3*,Btree*,Pgno*aRoot,int nRoot,int,int*);
H A Dbtree.c10669 Pgno *aRoot, /* An array of root pages numbers for individual trees */ in sqlite3BtreeIntegrityCheck() argument
10685 if( aRoot[0]==0 ){ in sqlite3BtreeIntegrityCheck()
10688 if( aRoot[1]!=1 ) bCkFreelist = 0; in sqlite3BtreeIntegrityCheck()
10743 for(i=0; (int)i<nRoot; i++) if( mx<aRoot[i] ) mx = aRoot[i]; in sqlite3BtreeIntegrityCheck()
10762 if( aRoot[i]==0 ) continue; in sqlite3BtreeIntegrityCheck()
10764 if( pBt->autoVacuum && aRoot[i]>1 && !bPartial ){ in sqlite3BtreeIntegrityCheck()
10765 checkPtrmap(&sCheck, aRoot[i], PTRMAP_ROOTPAGE, 0); in sqlite3BtreeIntegrityCheck()
10768 checkTreePage(&sCheck, aRoot[i], &notUsed, LARGEST_INT64); in sqlite3BtreeIntegrityCheck()
H A Dvdbe.c6935 Pgno *aRoot; /* Array of rootpage numbers for tables to be checked */ in sqlite3VdbeExec() local
6942 aRoot = pOp->p4.ai; in sqlite3VdbeExec()
6944 assert( aRoot[0]==(Pgno)nRoot ); in sqlite3VdbeExec()
6952 z = sqlite3BtreeIntegrityCheck(db, db->aDb[pOp->p5].pBt, &aRoot[1], nRoot, in sqlite3VdbeExec()
/sqlite-3.40.0/ext/fts3/
H A Dfts3_write.c4263 const char *aRoot = 0; /* Pointer to %_segdir.root buffer */ in fts3IncrmergeLoad() local
4280 aRoot = sqlite3_column_blob(pSelect, 4); in fts3IncrmergeLoad()
4281 if( aRoot==0 ){ in fts3IncrmergeLoad()
4318 int nHeight = (int)aRoot[0]; in fts3IncrmergeLoad()
4341 memcpy(pNode->block.a, aRoot, nRoot); in fts3IncrmergeLoad()
4686 const char *aRoot = sqlite3_column_blob(pFetch, 4); in fts3TruncateSegment() local
4689 rc = fts3TruncateNode(aRoot, nRoot, &root, zTerm, nTerm, &iBlock); in fts3TruncateSegment()