Home
last modified time | relevance | path

Searched refs:pPager (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dpager.c41 #define TRACE1(X) if( pPager==mainPager ) fprintf(stderr,X)
42 #define TRACE2(X,Y) if( pPager==mainPager ) fprintf(stderr,X,Y)
43 #define TRACE3(X,Y,Z) if( pPager==mainPager ) fprintf(stderr,X,Y,Z)
108 Pager *pPager; /* The pager to which this page belongs */ member
379 static int pager_errcode(Pager *pPager){ in pager_errcode() argument
381 if( pPager->errMask & PAGER_ERR_LOCK ) rc = SQLITE_PROTOCOL; in pager_errcode()
382 if( pPager->errMask & PAGER_ERR_DISK ) rc = SQLITE_IOERR; in pager_errcode()
383 if( pPager->errMask & PAGER_ERR_FULL ) rc = SQLITE_FULL; in pager_errcode()
384 if( pPager->errMask & PAGER_ERR_MEM ) rc = SQLITE_NOMEM; in pager_errcode()
385 if( pPager->errMask & PAGER_ERR_CORRUPT ) rc = SQLITE_CORRUPT; in pager_errcode()
[all …]
H A Dtest2.c69 Pager *pPager; in pager_open() local
79 rc = sqlitepager_open(&pPager, argv[1], nPage, 0, 1); in pager_open()
84 sprintf(zBuf,"0x%x",(int)pPager); in pager_open()
100 Pager *pPager; in pager_close() local
107 if( Tcl_GetInt(interp, argv[1], (int*)&pPager) ) return TCL_ERROR; in pager_close()
108 rc = sqlitepager_close(pPager); in pager_close()
127 Pager *pPager; in pager_rollback() local
134 if( Tcl_GetInt(interp, argv[1], (int*)&pPager) ) return TCL_ERROR; in pager_rollback()
135 rc = sqlitepager_rollback(pPager); in pager_rollback()
154 Pager *pPager; in pager_commit() local
[all …]
H A Dpager.h77 int sqlitepager_close(Pager *pPager);
78 int sqlitepager_get(Pager *pPager, Pgno pgno, void **ppPage);
79 void *sqlitepager_lookup(Pager *pPager, Pgno pgno);
85 int sqlitepager_overwrite(Pager *pPager, Pgno pgno, void*);
H A Dbtree.c353 Pager *pPager; /* The page cache */ member
716 rc = sqlitepager_open(&pBt->pPager, zFilename, nCache, EXTRA_SIZE, in sqliteBtreeOpen()
719 if( pBt->pPager ) sqlitepager_close(pBt->pPager); in sqliteBtreeOpen()
724 sqlitepager_set_destructor(pBt->pPager, pageDestructor); in sqliteBtreeOpen()
727 pBt->readOnly = sqlitepager_isreadonly(pBt->pPager); in sqliteBtreeOpen()
740 sqlitepager_close(pBt->pPager); in fileBtreeClose()
761 sqlitepager_set_cachesize(pBt->pPager, mxPage); in fileBtreeSetCacheSize()
774 sqlitepager_set_safety_level(pBt->pPager, level); in fileBtreeSetSafetyLevel()
791 rc = sqlitepager_get(pBt->pPager, 1, (void**)&pBt->page1); in lockBtree()
797 if( sqlitepager_pagecount(pBt->pPager)>0 ){ in lockBtree()
[all …]