]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Commit leftovers
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 15 Oct 2022 12:38:21 +0000 (13:38 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 15 Oct 2022 12:38:21 +0000 (13:38 +0100)
src/client/rspamc.cxx
src/libserver/symcache/symcache_impl.cxx

index 9719445b667795af56b78264eb9b4fdfb433ddd0..e1699c20016ed712d7066bb97852f83618f7472a 100644 (file)
@@ -474,7 +474,7 @@ rspamc_password_callback(const gchar *option_name,
                std::string_view value_view{value};
                if (value_view[0] == '/' || value_view[0] == '.') {
                        /* Try to open file */
-                       auto locked_mmap = rspamd::util::raii_mmaped_locked_file::mmap_shared(value, O_RDONLY, PROT_READ);
+                       auto locked_mmap = rspamd::util::raii_mmaped_file::mmap_shared(value, O_RDONLY, PROT_READ);
 
                        if (!locked_mmap.has_value() || locked_mmap.value().get_size() == 0) {
                                /* Just use it as a string */
index a7721f6dfe8ad1f78ef4f8bdf351694dd8a12957..961f270ce3a1ad499e2b0f91fed09cfdb5aa8571 100644 (file)
@@ -228,7 +228,7 @@ auto symcache::init() -> bool
 
 auto symcache::load_items() -> bool
 {
-       auto cached_map = util::raii_mmaped_locked_file::mmap_shared(cfg->cache_filename,
+       auto cached_map = util::raii_mmaped_file::mmap_shared(cfg->cache_filename,
                        O_RDONLY, PROT_READ);
 
        if (!cached_map.has_value()) {