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))