mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport Field.MaxShard
This commit is contained in:
parent
16461345f6
commit
cbf821123e
2 changed files with 3 additions and 3 deletions
4
field.go
4
field.go
|
|
@ -183,8 +183,8 @@ func (f *Field) Path() string { return f.path }
|
|||
// RowAttrStore returns the attribute storage.
|
||||
func (f *Field) RowAttrStore() AttrStore { return f.rowAttrStore }
|
||||
|
||||
// MaxShard returns the max shard in the field.
|
||||
func (f *Field) MaxShard() uint64 {
|
||||
// maxShard returns the max shard in the field.
|
||||
func (f *Field) maxShard() uint64 {
|
||||
f.mu.RLock()
|
||||
defer f.mu.RUnlock()
|
||||
|
||||
|
|
|
|||
2
index.go
2
index.go
|
|
@ -220,7 +220,7 @@ func (i *Index) maxShard() uint64 {
|
|||
|
||||
max := i.remoteMaxShard
|
||||
for _, f := range i.fields {
|
||||
if shard := f.MaxShard(); shard > max {
|
||||
if shard := f.maxShard(); shard > max {
|
||||
max = shard
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue