mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
enhance: set schema version when creating new collection (#45263)
Related to #43028 Initialize the schema version field when creating a new collection instance in QueryNode. The schema version is extracted from loadMetaInfo and assigned to the collection, ensuring proper schema version tracking and consistency across the distributed system. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
576084fe86
commit
e6be590b97
@ -331,6 +331,7 @@ func NewCollection(collectionID int64, schema *schemapb.CollectionSchema, indexM
|
|||||||
dbName: loadMetaInfo.GetDbName(),
|
dbName: loadMetaInfo.GetDbName(),
|
||||||
dbProperties: loadMetaInfo.GetDbProperties(),
|
dbProperties: loadMetaInfo.GetDbProperties(),
|
||||||
resourceGroup: loadMetaInfo.GetResourceGroup(),
|
resourceGroup: loadMetaInfo.GetResourceGroup(),
|
||||||
|
schemaVersion: loadMetaInfo.GetSchemaVersion(),
|
||||||
refCount: atomic.NewUint32(0),
|
refCount: atomic.NewUint32(0),
|
||||||
isGpuIndex: isGpuIndex,
|
isGpuIndex: isGpuIndex,
|
||||||
loadFields: loadFieldIDs,
|
loadFields: loadFieldIDs,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user