Skip to content

Commit

Permalink
save to etcd
Browse files Browse the repository at this point in the history
Signed-off-by: Xianhui.Lin <[email protected]>
  • Loading branch information
JsDove committed Jan 17, 2025
1 parent 44dd0df commit 7776e92
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 118 deletions.
2 changes: 2 additions & 0 deletions internal/metastore/model/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ func UnmarshalCollectionModel(coll *pb.CollectionInfo) *Collection {
State: coll.State,
Properties: coll.Properties,
EnableDynamicField: coll.Schema.EnableDynamicField,
UpdateTimestamp: coll.UpdateTimestamp,
}
}

Expand Down Expand Up @@ -220,6 +221,7 @@ func marshalCollectionModelWithConfig(coll *Collection, c *config) *pb.Collectio
StartPositions: coll.StartPositions,
State: coll.State,
Properties: coll.Properties,
UpdateTimestamp: coll.UpdateTimestamp,
}

if c.withPartitions {
Expand Down
1 change: 1 addition & 0 deletions pkg/proto/etcd_meta.proto
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ message CollectionInfo {
CollectionState state = 13; // To keep compatible with older version, default state is `Created`.
repeated common.KeyValuePair properties = 14;
int64 db_id = 15;
uint64 UpdateTimestamp = 16;
}

message PartitionInfo {
Expand Down
Loading

0 comments on commit 7776e92

Please sign in to comment.