mirror of https://github.com/milvus-io/milvus.git
Store index parameters to descriptor event (#9451)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/9568/head
parent
dd09ded49a
commit
28a90f9e7a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue