Return errors for func not implemented in tsm1dev engine

pull/4959/head
Jason Wilder 2015-12-02 11:06:01 -07:00
parent a7e21c2975
commit 3014d7e391
1 changed files with 4 additions and 3 deletions

View File

@ -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") }