diff options
author | drh <drh@noemail.net> | 2016-03-04 14:43:44 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-03-04 14:43:44 +0000 |
commit | 3298a641a2b1c883b34e9d85541db50d6e2d1ff9 (patch) | |
tree | f9b2fd06ad9bf6857dafddf351942b6403656506 /src/sqliteInt.h | |
parent | 94580868f5b9eea4b52710b7304a423006a44f98 (diff) | |
parent | 3ac9a86415ad92af53f10964b6b522ef96c03afb (diff) | |
download | sqlite-3298a641a2b1c883b34e9d85541db50d6e2d1ff9.tar.gz sqlite-3298a641a2b1c883b34e9d85541db50d6e2d1ff9.zip |
Defer opening and writing statement journals until the size reaches a
threshold (currently 64KiB).
FossilOrigin-Name: cb9302cca423de41305719a49208daa392ec09da
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index a37da33ed..387bb7436 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -3998,19 +3998,14 @@ const char *sqlite3JournalModename(int); #define IN_INDEX_LOOP 0x0004 /* IN operator used as a loop */ int sqlite3FindInIndex(Parse *, Expr *, u32, int*); +int sqlite3JournalOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int); +int sqlite3JournalSize(sqlite3_vfs *); #ifdef SQLITE_ENABLE_ATOMIC_WRITE - int sqlite3JournalOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int); - int sqlite3JournalSize(sqlite3_vfs *); int sqlite3JournalCreate(sqlite3_file *); - int sqlite3JournalExists(sqlite3_file *p); -#else - #define sqlite3JournalSize(pVfs) ((pVfs)->szOsFile) - #define sqlite3JournalExists(p) 1 #endif +int sqlite3JournalIsInMemory(sqlite3_file *p); void sqlite3MemJournalOpen(sqlite3_file *); -int sqlite3MemJournalSize(void); -int sqlite3IsMemJournal(sqlite3_file *); void sqlite3ExprSetHeightAndFlags(Parse *pParse, Expr *p); #if SQLITE_MAX_EXPR_DEPTH>0 |