From e5a56f1cd2825b01d738aacf8cc8f170ab489e7a Mon Sep 17 00:00:00 2001 From: "Jason E. Aten" Date: Thu, 15 Oct 2020 16:21:38 -0500 Subject: [PATCH] bluegreentx: default to not dumping full databases --- bluegreentx.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bluegreentx.go b/bluegreentx.go index 53f6ef6d5..6d02c6f3f 100644 --- a/bluegreentx.go +++ b/bluegreentx.go @@ -62,6 +62,8 @@ type blueGreenTx struct { txf *TxFactory short bool // short Dump or long + + FullDump bool // else quieter, don't attemp Dump() if false. } // blueGreenRegistry is used to force checking of (read) transactions @@ -155,6 +157,10 @@ var blueGreenTxDumpMut sync.Mutex func (c *blueGreenTx) Dump(short bool, shard uint64) { + if !c.FullDump { + return + } + blueGreenTxDumpMut.Lock() defer blueGreenTxDumpMut.Unlock() fmt.Printf("%v blueGreenTx.Dump ============== \n", FileLine(2))