Lines Matching defs:pLaf

17957   RecoverStateLAF *pLaf = &p->laf;
17959 if( pLaf->pFindRoot==0 ){
17960 pLaf->pFindRoot = recoverPrepare(p, p->dbOut,
17971 sqlite3_bind_int64(pLaf->pFindRoot, 1, iPg);
17972 if( sqlite3_step(pLaf->pFindRoot)==SQLITE_ROW ){
17973 *piRoot = sqlite3_column_int64(pLaf->pFindRoot, 0);
17977 recoverReset(p, pLaf->pFindRoot);
17987 RecoverStateLAF *pLaf = &p->laf;
17988 sqlite3_value **apVal = pLaf->apVal;
17989 sqlite3_stmt *pPageData = pLaf->pPageData;
17990 sqlite3_stmt *pInsert = pLaf->pInsert;
18038 }else if( iField<pLaf->nMaxField ){
18066 RecoverStateLAF *pLaf = &p->laf;
18068 if( pLaf->pInsert==0 ){
18072 int res = sqlite3_step(pLaf->pAllPage);
18074 i64 iPage = sqlite3_column_int64(pLaf->pAllPage, 0);
18075 if( recoverBitmapQuery(pLaf->pUsed, iPage)==0 ){
18079 recoverReset(p, pLaf->pAllPage);
18095 RecoverStateLAF *pLaf = &p->laf;
18097 if( pLaf->nMaxField>0 ){
18100 zTab = recoverLostAndFoundCreate(p, pLaf->nMaxField);
18101 pLaf->pInsert = recoverLostAndFoundInsert(p, zTab, pLaf->nMaxField);
18104 pLaf->pAllPage = recoverPreparePrintf(p, p->dbOut,
18110 pLaf->pPageData = recoverPrepare(p, p->dbOut,
18117 pLaf->apVal = (sqlite3_value**)recoverMalloc(p,
18118 pLaf->nMaxField*sizeof(sqlite3_value*)
18318 RecoverStateLAF *pLaf = &p->laf;
18322 pLaf->nPg = recoverPageCount(p);
18323 pLaf->pUsed = recoverBitmapAlloc(p, pLaf->nPg);
18360 pLaf->pUsedPages = pStmt;
18370 RecoverStateLAF *pLaf = &p->laf;
18373 rc = sqlite3_step(pLaf->pUsedPages);
18375 i64 iPg = sqlite3_column_int64(pLaf->pUsedPages, 0);
18376 recoverBitmapSet(pLaf->pUsed, iPg);
18379 recoverFinalize(p, pLaf->pUsedPages);
18380 pLaf->pUsedPages = 0;
18392 RecoverStateLAF *pLaf = &p->laf;
18399 pLaf->pMapInsert = recoverPrepare(p, p->dbOut,
18402 pLaf->pAllAndParent = recoverPreparePrintf(p, p->dbOut,
18410 pLaf->pMaxField = recoverPreparePrintf(p, p->dbOut,
18423 RecoverStateLAF *pLaf = &p->laf;
18425 int res = sqlite3_step(pLaf->pAllAndParent);
18427 i64 iChild = sqlite3_column_int(pLaf->pAllAndParent, 1);
18428 if( recoverBitmapQuery(pLaf->pUsed, iChild)==0 ){
18429 sqlite3_bind_int64(pLaf->pMapInsert, 1, iChild);
18430 sqlite3_bind_value(pLaf->pMapInsert, 2,
18431 sqlite3_column_value(pLaf->pAllAndParent, 0)
18433 sqlite3_step(pLaf->pMapInsert);
18434 recoverReset(p, pLaf->pMapInsert);
18435 sqlite3_bind_int64(pLaf->pMaxField, 1, iChild);
18436 if( SQLITE_ROW==sqlite3_step(pLaf->pMaxField) ){
18437 int nMax = sqlite3_column_int(pLaf->pMaxField, 0);
18438 if( nMax>pLaf->nMaxField ) pLaf->nMaxField = nMax;
18440 recoverReset(p, pLaf->pMaxField);
18443 recoverFinalize(p, pLaf->pAllAndParent);
18444 pLaf->pAllAndParent =0;