Upgrade versions of vendored libs
This commit is contained in:
11
vendor/github.com/cockroachdb/pebble/metrics.go
generated
vendored
11
vendor/github.com/cockroachdb/pebble/metrics.go
generated
vendored
@@ -184,6 +184,11 @@ type Metrics struct {
|
||||
Duration time.Duration
|
||||
}
|
||||
|
||||
Ingest struct {
|
||||
// The total number of ingestions
|
||||
Count uint64
|
||||
}
|
||||
|
||||
Flush struct {
|
||||
// The total number of flushes.
|
||||
Count int64
|
||||
@@ -225,6 +230,9 @@ type Metrics struct {
|
||||
// The approximate count of internal tombstones (DEL, SINGLEDEL and
|
||||
// RANGEDEL key kinds) within the database.
|
||||
TombstoneCount uint64
|
||||
// A cumulative total number of missized DELSIZED keys encountered by
|
||||
// compactions since the database was opened.
|
||||
MissizedTombstonesCount uint64
|
||||
}
|
||||
|
||||
Snapshots struct {
|
||||
@@ -504,6 +512,9 @@ func (m *Metrics) SafeFormat(w redact.SafePrinter, _ rune) {
|
||||
notApplicable,
|
||||
notApplicable,
|
||||
redact.Safe(hitRate(m.Filter.Hits, m.Filter.Misses)))
|
||||
w.Printf(" ingest %9d\n",
|
||||
redact.Safe(m.Ingest.Count),
|
||||
)
|
||||
}
|
||||
|
||||
func hitRate(hits, misses int64) float64 {
|
||||
|
||||
Reference in New Issue
Block a user