mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
delete index missed index/shard removal
This commit is contained in:
parent
69dc3593a5
commit
ccda5f46d5
1 changed files with 2 additions and 0 deletions
|
|
@ -475,8 +475,10 @@ func (per *DBPerShard) DeleteIndex(index string) (err error) {
|
|||
if err != nil {
|
||||
return errors.Wrap(err, fmt.Sprintf("DBPerShard.DeleteIndex os.RemoveAll('%v')", path))
|
||||
}
|
||||
delete(per.index2shards[ty], index)
|
||||
}
|
||||
}
|
||||
|
||||
// allow the index to be created again anew.
|
||||
delete(per.dbh.Index, index)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue