fix: collection properties not saved for alter collection (#30145)

Resolves: #30144

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-01-19 23:06:54 +08:00 committed by GitHub
parent ddd741a5d4
commit e3b8c3f60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -457,6 +457,7 @@ func (kc *Catalog) alterModifyCollection(oldColl *model.Collection, newColl *mod
oldCollClone.CreateTime = newColl.CreateTime oldCollClone.CreateTime = newColl.CreateTime
oldCollClone.ConsistencyLevel = newColl.ConsistencyLevel oldCollClone.ConsistencyLevel = newColl.ConsistencyLevel
oldCollClone.State = newColl.State oldCollClone.State = newColl.State
oldCollClone.Properties = newColl.Properties
oldKey := BuildCollectionKey(oldColl.DBID, oldColl.CollectionID) oldKey := BuildCollectionKey(oldColl.DBID, oldColl.CollectionID)
newKey := BuildCollectionKey(newColl.DBID, oldColl.CollectionID) newKey := BuildCollectionKey(newColl.DBID, oldColl.CollectionID)