deleteing a key that does not exist is ok

pull/1629/head
Cory LaNou 2015-02-21 22:29:37 -07:00
parent 8637a10b6a
commit c8afd6242a
1 changed files with 1 additions and 4 deletions

View File

@ -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 {