diff options
-rw-r--r-- | src/libserver/fuzzy_backend.c | 4 | ||||
-rw-r--r-- | src/libstat/learn_cache/sqlite3_cache.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 24a9b2412..7cd4faa91 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -468,8 +468,8 @@ rspamd_fuzzy_backend_open (const gchar *path, GError **err) gchar *dir, header[4]; gint fd, r; struct rspamd_fuzzy_backend *res; - static const char sqlite_wal[] = "PRAGMA journal_mode=WAL;", - fallback_journal[] = "PRAGMA journal_mode=OFF;"; + static const char sqlite_wal[] = "PRAGMA journal_mode=\"wal\";", + fallback_journal[] = "PRAGMA journal_mode=\"off\";"; int rc; /* First of all we check path for existence */ diff --git a/src/libstat/learn_cache/sqlite3_cache.c b/src/libstat/learn_cache/sqlite3_cache.c index a9e74edbb..0cfea0a83 100644 --- a/src/libstat/learn_cache/sqlite3_cache.c +++ b/src/libstat/learn_cache/sqlite3_cache.c @@ -54,8 +54,8 @@ rspamd_stat_cache_sqlite3_init(struct rspamd_stat_ctx *ctx, struct rspamd_stat_sqlite3_ctx *new = NULL; struct rspamd_classifier_config *clf; const ucl_object_t *obj, *elt; - static const char sqlite_wal[] = "PRAGMA journal_mode=WAL;", - fallback_journal[] = "PRAGMA journal_mode=OFF;"; + static const char sqlite_wal[] = "PRAGMA journal_mode=\"wal\";", + fallback_journal[] = "PRAGMA journal_mode=\"off\";"; GList *cur; gchar dbpath[PATH_MAX]; sqlite3 *sqlite; |