diff --git a/libs/tm-db/rocksdb.go b/libs/tm-db/rocksdb.go index 86fdc55262..996b9b7cc0 100644 --- a/libs/tm-db/rocksdb.go +++ b/libs/tm-db/rocksdb.go @@ -87,15 +87,13 @@ func NewRocksDB(name string, dir string) (*RocksDB, error) { opts.SetMaxOpenFiles(maxOpenFiles) } - opts.SetAllowMmapReads(true) + opts.SetAllowMmapReads(false) if v, ok := params[mmapRead]; ok { enable, err := strconv.ParseBool(v) if err != nil { panic(fmt.Sprintf("Invalid options parameter %s: %s", mmapRead, err)) } - if enable { - opts.SetAllowMmapReads(enable) - } + opts.SetAllowMmapReads(enable) } if v, ok := params[mmapWrite]; ok {