value.go
func (vlog *valueLog) encodedDiscardStats() []byte {
	vlog.lfDiscardStats.Lock()
	defer vlog.lfDiscardStats.Unlock()

	encodedStats, _ := json.Marshal(vlog.lfDiscardStats.m)
	return encodedStats
}
func (vlog *valueLog) encodedDiscardStats() []byte {
	vlog.lfDiscardStats.Lock()
	defer vlog.lfDiscardStats.Unlock()

	encodedStats, _ := json.Marshal(vlog.lfDiscardStats.m)
	return encodedStats
}
func ( vlog * valueLog ) encodedDiscardStats ( ) [ ] byte { vlog . lfDiscardStats . Lock ( ) defer vlog . lfDiscardStats . Unlock ( ) encodedStats , _ := json . Marshal ( vlog . lfDiscardStats . m ) return encodedStats }
// encodedDiscardStats returns []byte representation of lfDiscardStats
// This will be called while storing stats in BadgerDB
encodedDiscardStats returns [] byte representation of lfDiscardStats This will be called while storing stats in BadgerDB