From bac1a1355b44e1fdce8fadfb678efa2f027b208c Mon Sep 17 00:00:00 2001 From: congqixia Date: Mon, 22 Jan 2024 10:08:55 +0800 Subject: [PATCH] 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 --- internal/metastore/kv/rootcoord/kv_catalog.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/metastore/kv/rootcoord/kv_catalog.go b/internal/metastore/kv/rootcoord/kv_catalog.go index 5490d9f361..0fcd8ed879 100644 --- a/internal/metastore/kv/rootcoord/kv_catalog.go +++ b/internal/metastore/kv/rootcoord/kv_catalog.go @@ -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)