Store index parameters to descriptor event (#9451)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9568/head
dragondriver 2021-10-09 16:08:56 +08:00 committed by GitHub
parent dd09ded49a
commit 28a90f9e7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -823,6 +823,11 @@ func (codec *IndexFileBinlogCodec) Serialize(
for pos := range datas {
writer := NewIndexFileBinlogWriter(indexBuildID, version, collectionID, partitionID, segmentID, fieldID, indexName, indexID, datas[pos].Key)
// https://github.com/milvus-io/milvus/issues/9449
// store index parameters to extra, in bytes format.
params, _ := json.Marshal(indexParams)
writer.descriptorEvent.AddExtra(IndexParamsFile, params)
eventWriter, err := writer.NextIndexFileEventWriter()
if err != nil {
return nil, err