60 void set_mapped_file_db_dirty(
bool);
61 void load_database_file(boost::asio::io_service& sig_ios);
62 void save_database_file();
63 bool all_zeros(
char* data,
size_t sz);
64 void setup_non_file_mapping();
66 bip::file_lock _mapped_file_lock;
67 bfs::path _data_file_path;
68 std::string _database_name;
71 bip::file_mapping _file_mapping;
72 bip::mapped_region _file_mapped_region;
73 void* _non_file_mapped_mapping =
nullptr;
74 size_t _non_file_mapped_mapping_size = 0;
77 bip::permissions _db_permissions;
79 bip::permissions _db_permissions{S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH};
84 constexpr static unsigned _db_size_multiple_requirement = 1024*1024;