From c8afd6242a20ca18c9a252c19d412c4aea2e9228 Mon Sep 17 00:00:00 2001 From: Cory LaNou Date: Sat, 21 Feb 2015 22:29:37 -0700 Subject: [PATCH] deleteing a key that does not exist is ok --- database.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/database.go b/database.go index 4774b62538..97cfa9a83a 100644 --- a/database.go +++ b/database.go @@ -1146,10 +1146,7 @@ func (db *database) dropSeries(seriesByMeasurement map[string][]uint32) error { delete(db.series, id) // Remove series information from measurements - m := db.measurements[measurement] - if !m.dropSeries(id) { - return fmt.Errorf("failed to remove series id %d from measurment %q", id, m.Name) - } + db.measurements[measurement].dropSeries(id) // Remove shard data for _, rp := range db.policies {