mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Merge pull request #993 from molecula/fix983
bluegreentx: default to not dumping full databases
This commit is contained in:
commit
de642ed90c
1 changed files with 6 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue