Merge pull request #1811 from molecula/fb-1027

[fb-1027] ensure field bit depth is set when restoring shard
This commit is contained in:
reese 2021-12-16 08:54:34 -06:00 • committed by GitHub
commit 65ab92f364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
api.go
View file

@ -2768,6 +2768,14 @@ func (api *API) RestoreShard(ctx context.Context, indexName string, shard uint64
if err != nil {
return err
}
bd, err := view.bitDepth([]uint64{shard})
if err != nil {
return err
}
err = fld.cacheBitDepth(bd)
if err != nil {
return err
}
}
return nil