fix: [Cherry-pick] collection properties not saved for alter collection (#30145) (#30156)

Cherry-pick from master
pr: #30145
Resolves: #30144

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
congqixia 2024-01-22 10:08:55 +08:00 committed by GitHub
parent b95f0cc0a1
commit bac1a1355b
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.ConsistencyLevel = newColl.ConsistencyLevel
oldCollClone.State = newColl.State
oldCollClone.Properties = newColl.Properties
oldKey := BuildCollectionKey(oldColl.DBID, oldColl.CollectionID)
newKey := BuildCollectionKey(newColl.DBID, oldColl.CollectionID)