mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
ensure field bit depth is set when restoring shard
we have to manually set the cache value here bc it wont get set until the node is restarted otherwise
This commit is contained in:
parent
600494c724
commit
c59ce837b3
1 changed files with 8 additions and 0 deletions
8
api.go
8
api.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue