fix use same logidx in different field (#27492)

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
pull/27650/head
aoiasd 2023-10-11 18:49:33 +08:00 committed by GitHub
parent 07809880b2
commit ec830e1240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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