mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 04:19:18 +08:00
626854cf0c
Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: yah01 <yang.cen@zilliz.com> Co-authored-by: Wei Liu <wei.liu@zilliz.com> Co-authored-by: Congqi Xia <congqi.xia@zilliz.com> Signed-off-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: sunby <bingyi.sun@zilliz.com> Co-authored-by: yah01 <yang.cen@zilliz.com> Co-authored-by: Wei Liu <wei.liu@zilliz.com> Co-authored-by: Congqi Xia <congqi.xia@zilliz.com>
17 lines
239 B
Go
17 lines
239 B
Go
package meta
|
|
|
|
type Meta struct {
|
|
*CollectionManager
|
|
*ReplicaManager
|
|
}
|
|
|
|
func NewMeta(
|
|
idAllocator func() (int64, error),
|
|
store Store,
|
|
) *Meta {
|
|
return &Meta{
|
|
NewCollectionManager(store),
|
|
NewReplicaManager(idAllocator, store),
|
|
}
|
|
}
|