aboutsummaryrefslogtreecommitdiff
path: root/src/os.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-03-04 14:43:44 +0000
committerdrh <drh@noemail.net>2016-03-04 14:43:44 +0000
commit3298a641a2b1c883b34e9d85541db50d6e2d1ff9 (patch)
treef9b2fd06ad9bf6857dafddf351942b6403656506 /src/os.c
parent94580868f5b9eea4b52710b7304a423006a44f98 (diff)
parent3ac9a86415ad92af53f10964b6b522ef96c03afb (diff)
downloadsqlite-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os.c b/src/os.c
index 2fd44abf8..eed782853 100644
--- a/src/os.c
+++ b/src/os.c
@@ -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); \