From 3014d7e39130dac9135dc515068c34192d0b07c1 Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Wed, 2 Dec 2015 11:06:01 -0700 Subject: [PATCH] Return errors for func not implemented in tsm1dev engine --- tsdb/engine/tsm1/engine.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tsdb/engine/tsm1/engine.go b/tsdb/engine/tsm1/engine.go index 8b43b95dbc..c01858bfa7 100644 --- a/tsdb/engine/tsm1/engine.go +++ b/tsdb/engine/tsm1/engine.go @@ -1,6 +1,7 @@ package tsm1 import ( + "fmt" "io" "log" "os" @@ -146,12 +147,12 @@ func (e *DevEngine) WritePoints(points []models.Point, measurementFieldsToSave m // DeleteSeries deletes the series from the engine. func (e *DevEngine) DeleteSeries(seriesKeys []string) error { - panic("not implemented") + return fmt.Errorf("delete series not implemented") } // DeleteMeasurement deletes a measurement and all related series. func (e *DevEngine) DeleteMeasurement(name string, seriesKeys []string) error { - panic("not implemented") + return fmt.Errorf("delete measurement not implemented") } // SeriesCount returns the number of series buckets on the shard. @@ -161,7 +162,7 @@ func (e *DevEngine) SeriesCount() (n int, err error) { // Begin starts a new transaction on the engine. func (e *DevEngine) Begin(writable bool) (tsdb.Tx, error) { - panic("not implemented") + return nil, fmt.Errorf("begin transaction not implemented") } func (e *DevEngine) WriteTo(w io.Writer) (n int64, err error) { panic("not implemented") }