Set env_options.allow_mmap_writes = false if not from DB Options

This commit is contained in:
Siying Dong 2018-05-29 10:33:05 -07:00 committed by GitHub
parent 677ca7d806
commit 701e9db415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,8 @@ EnvOptions::EnvOptions(const Options& options) {
EnvOptions::EnvOptions() {
Options options;
AssignEnvOptions(this, options);
// Do not use mmap_write by default to be safe.
use_mmap_writes = options.allow_mmap_writes;
}