aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/sqlite_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-10 12:45:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-10 12:45:19 +0100
commite52f7b39afb23093d38a0b90e5f9b640671c27f4 (patch)
treeecaa546f07ccba5204938f2a2f87818533cd2fab /src/libutil/sqlite_utils.c
parent316fe3e293a4737f0124c34f35cbbc55e97d0455 (diff)
downloadrspamd-e52f7b39afb23093d38a0b90e5f9b640671c27f4.tar.gz
rspamd-e52f7b39afb23093d38a0b90e5f9b640671c27f4.zip
Fix pragma usage.
Diffstat (limited to 'src/libutil/sqlite_utils.c')
-rw-r--r--src/libutil/sqlite_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c
index 7e12a2782..e58921a1a 100644
--- a/src/libutil/sqlite_utils.c
+++ b/src/libutil/sqlite_utils.c
@@ -249,7 +249,7 @@ rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool, const gchar *path, const
gchar lock_path[PATH_MAX], dbdir[PATH_MAX], *pdir;
static const char sqlite_wal[] = "PRAGMA journal_mode=\"wal\";",
exclusive_lock_sql[] = "PRAGMA locking_mode=\"exclusive\";",
- fsync_sql[] = "PRAGMA database.synchronous=1;";
+ fsync_sql[] = "PRAGMA synchronous=1;";
gboolean create = FALSE, has_lock = FALSE;
flags = SQLITE_OPEN_READWRITE;
@@ -373,7 +373,7 @@ rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool, const gchar *path, const
}
if (sqlite3_exec (sqlite, fsync_sql, NULL, NULL, NULL) != SQLITE_OK) {
- msg_warn_pool ("cannot set database.synchronous: %s",
+ msg_warn_pool ("cannot set synchronous: %s",
sqlite3_errmsg (sqlite));
}