bluegreentx: default to not dumping full databases

This commit is contained in:
Jason E. Aten 2020-10-15 16:21:38 -05:00
parent c859a8aa2b
commit e5a56f1cd2

View file

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