mirror of https://github.com/milvus-io/milvus.git
fix use same logidx in different field (#27492)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>pull/27650/head
parent
07809880b2
commit
ec830e1240
|
@ -467,7 +467,6 @@ func (m *rendezvousFlushManager) flushBufferData(data *BufferData, segmentID Uni
|
|||
|
||||
// binlogs
|
||||
for _, blob := range binLogBlobs {
|
||||
defer func() { logidx++ }()
|
||||
fieldID, err := strconv.ParseInt(blob.GetKey(), 10, 64)
|
||||
if err != nil {
|
||||
log.Error("Flush failed ... cannot parse string to fieldID ..", zap.Error(err))
|
||||
|
@ -485,6 +484,8 @@ func (m *rendezvousFlushManager) flushBufferData(data *BufferData, segmentID Uni
|
|||
LogPath: key,
|
||||
LogSize: int64(fieldMemorySize[fieldID]),
|
||||
}
|
||||
|
||||
logidx += 1
|
||||
}
|
||||
|
||||
// pk stats binlog
|
||||
|
|
Loading…
Reference in New Issue