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 */
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()) {