diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-08 16:56:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-08 16:59:00 +0100 |
commit | 2705479096ffa49350f4d9472be013e9a053d15f (patch) | |
tree | 3914e9fa225c86140a87891ad5a36ac4b768753c /src/libutil/sqlite_utils.c | |
parent | f803de985a63f31321f3f4fcbed656b692d7d756 (diff) | |
download | rspamd-2705479096ffa49350f4d9472be013e9a053d15f.tar.gz rspamd-2705479096ffa49350f4d9472be013e9a053d15f.zip |
[Minor] Remove redundant code and to stop compiler whinging
Issue: #2251
Submitted by: @beiDei8z
Diffstat (limited to 'src/libutil/sqlite_utils.c')
-rw-r--r-- | src/libutil/sqlite_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c index b1e33cb64..9c2969542 100644 --- a/src/libutil/sqlite_utils.c +++ b/src/libutil/sqlite_utils.c @@ -297,8 +297,10 @@ rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool, const gchar *path, const foreign_keys[] = "PRAGMA foreign_keys=\"ON\";", +#if defined(__LP64__) || defined(_LP64) enable_mmap[] = "PRAGMA mmap_size=" G_STRINGIFY(RSPAMD_SQLITE_MMAP_LIMIT) ";", +#endif other_pragmas[] = "PRAGMA read_uncommitted=\"ON\";" "PRAGMA cache_size=" |