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/os.c | |
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/os.c')
-rw-r--r-- | src/os.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -66,7 +66,7 @@ int sqlite3_open_file_count = 0; #if defined(SQLITE_TEST) int sqlite3_memdebug_vfs_oom_test = 1; #define DO_OS_MALLOC_TEST(x) \ - if (sqlite3_memdebug_vfs_oom_test && (!x || !sqlite3IsMemJournal(x))) { \ + if (sqlite3_memdebug_vfs_oom_test && (!x || !sqlite3JournalIsInMemory(x))) { \ void *pTstAlloc = sqlite3Malloc(10); \ if (!pTstAlloc) return SQLITE_IOERR_NOMEM_BKPT; \ sqlite3_free(pTstAlloc); \ |