mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +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(),
|
||||
dbProperties: loadMetaInfo.GetDbProperties(),
|
||||
resourceGroup: loadMetaInfo.GetResourceGroup(),
|
||||
schemaVersion: loadMetaInfo.GetSchemaVersion(),
|
||||
refCount: atomic.NewUint32(0),
|
||||
isGpuIndex: isGpuIndex,
|
||||
loadFields: loadFieldIDs,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user