more page cache

This commit is contained in:
Hongze Cheng 2022-02-21 08:58:32 +00:00
parent 7248dc6868
commit 7184778c28
3 changed files with 696 additions and 730 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,10 @@
**
*/
#include <assert.h>
#include <pthread.h>
#include <stdint.h>
#include <string.h>
#ifndef SQLITEINT_H
#define SQLITEINT_H
@ -32,6 +35,10 @@ typedef struct sqlite3_pcache_page {
void *pExtra; /* Extra information associated with the page */
} sqlite3_pcache_page;
#define ROUNDDOWN8(x) ((x) & ~7)
#define ROUND8(x) (((x) + 7) & ~7)
typedef u32 Pgno;
typedef struct Pager Pager;