server: replace mlockall with Mlock in --experimental-memory-mlock

Implementation of `--experimental-memory-mlock` backed by `mlockall` syscall is replaced by `Mlock` flag (backed by mlock syscall) of bboltDB.
This commit is contained in:
wpedrak
2021-04-29 12:08:52 +02:00
parent 927b3a3152
commit 1145c57601

View File

@@ -50,9 +50,6 @@ func newBackend(cfg config.ServerConfig) backend.Backend {
// permit 10% excess over quota for disarm
bcfg.MmapSize = uint64(cfg.QuotaBackendBytes + cfg.QuotaBackendBytes/10)
}
if cfg.ExperimentalMemoryMlock {
cfg.Logger.Info("setting `Mlock` bbolt flag")
}
bcfg.Mlock = cfg.ExperimentalMemoryMlock
return backend.New(bcfg)