Merge pull request #993 from molecula/fix983

bluegreentx: default to not dumping full databases
This commit is contained in:
tgruben 2020-10-15 17:31:55 -05:00 committed by GitHub
commit de642ed90c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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