first cache rebuild was ineffective

This commit is contained in:
Todd Gruben 2021-05-20 11:36:05 -05:00
parent 7520e0ef28
commit 35f4c33de9

1
api.go
View file

@ -2264,7 +2264,6 @@ func (api *API) RestoreShard(ctx context.Context, indexName string, shard uint64
_ = os.Remove(tempPath)
return err
}
api.holder.recalculateCaches()
err = db.OpenDB()
if err != nil {
return err