mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Minor fixes
This commit is contained in:
parent
df2503dfa6
commit
b1838159f2
3 changed files with 2 additions and 8 deletions
|
|
@ -691,7 +691,6 @@ func (f *fragment) unprotectedSetRow(row *Row, rowID uint64) (changed bool, err
|
|||
|
||||
// Snapshot storage.
|
||||
f.snapshotQueue.Enqueue(f)
|
||||
f.stats.Count(MetricSetRow, 1, 1.0)
|
||||
|
||||
return changed, nil
|
||||
}
|
||||
|
|
@ -733,8 +732,6 @@ func (f *fragment) unprotectedClearRow(rowID uint64) (changed bool, err error) {
|
|||
// Snapshot storage.
|
||||
f.snapshotQueue.Enqueue(f)
|
||||
|
||||
f.stats.Count(MetricClearRow, 1, 1.0)
|
||||
|
||||
return changed, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,11 +28,9 @@ const (
|
|||
MetricRowBSI = "query_row_bsi_total"
|
||||
MetricSetRowAttrs = "query_setrowattrs_total"
|
||||
MetricSetColumnAttrs = "query_setcolumnattrs_total"
|
||||
MetricMaximumRow = "maximum_row"
|
||||
MetricMaximumRow = "shard_maximum_row"
|
||||
MetricSetBit = "set_bit_total"
|
||||
MetricClearBit = "clear_bit_total"
|
||||
MetricSetRow = "set_row_total"
|
||||
MetricClearRow = "clear_row_total"
|
||||
MetricImportingN = "importing_total"
|
||||
MetricImportedN = "imported_total"
|
||||
MetricClearingN = "clearing_total"
|
||||
|
|
|
|||
|
|
@ -252,8 +252,7 @@ func (c *prometheusClient) Set(name string, value string, rate float64) {
|
|||
|
||||
// Timing tracks timing information for a metric.
|
||||
func (c *prometheusClient) Timing(name string, value time.Duration, rate float64) {
|
||||
durationS := float64(value) / float64(time.Second)
|
||||
c.Histogram(name, float64(durationS), rate)
|
||||
c.Histogram(name, value.Seconds(), rate)
|
||||
}
|
||||
|
||||
// SetLogger sets the logger for client.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue