From 76bd23d46d70ac42a816197efba727cc42c9a0a1 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Fri, 2 Dec 2022 20:57:31 +0700 Subject: [PATCH] mdbx: print some logs about settings (#6181) --- node/node.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/node.go b/node/node.go index 4a0860fa9..c20fe58c3 100644 --- a/node/node.go +++ b/node/node.go @@ -340,12 +340,15 @@ func OpenDatabase(config *nodecfg.Config, logger log.Logger, label kv.Label) (kv opts = opts.GrowthStep(16 * datasize.MB) } if debug.WriteMap() { + log.Info("[db] Enabling WriteMap") opts = opts.WriteMap() } if debug.MergeTr() > 0 { + log.Info("[db] Setting", "MergeThreshold", debug.MergeTr()) opts = opts.WriteMergeThreshold(uint64(debug.MergeTr() * 8192)) } if debug.MdbxReadAhead() { + log.Info("[db] Setting Enabling ReadAhead") opts = opts.Flags(func(u uint) uint { return u &^ mdbx2.NoReadahead })