on POSIX systems use mprotect to protect the data from accidental changes

This commit is contained in:
Krasimir Angelov
2022-07-05 15:59:06 +02:00
parent 73d4e326f7
commit c3c1cf2a64
2 changed files with 48 additions and 11 deletions

View File

@@ -153,7 +153,7 @@ private:
PGF_INTERNAL_DECL void lock(DB_scope_mode m);
PGF_INTERNAL_DECL void unlock();
PGF_INTERNAL_DECL void resize_map(size_t new_size);
PGF_INTERNAL_DECL void resize_map(size_t new_size, bool writeable);
friend class DB_scope;
};