Skip to content

Commit ffc7a91

Browse files
authoredMar 22, 2024
fix: read length meta bug due to key typo (alibaba#1413)
1 parent f2c3ade commit ffc7a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/processor/daemon/LogProcess.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ void LogProcess::FillEventGroupMetadata(LogBuffer& logBuffer, PipelineEventGroup
516516
eventGroup.SetMetadataNoCopy(EventGroupMetaKey::HOST_IP, LogFileProfiler::mIpAddr);
517517
eventGroup.SetMetadataNoCopy(EventGroupMetaKey::HOST_NAME, LogFileProfiler::mHostname);
518518
eventGroup.SetMetadata(EventGroupMetaKey::LOG_READ_OFFSET, std::to_string(logBuffer.readOffset));
519-
eventGroup.SetMetadata(EventGroupMetaKey::LOG_READ_OFFSET, std::to_string(logBuffer.readLength));
519+
eventGroup.SetMetadata(EventGroupMetaKey::LOG_READ_LENGTH, std::to_string(logBuffer.readLength));
520520
}
521521

522522
void LogProcess::FillLogGroupLogs(const PipelineEventGroup& eventGroup,

0 commit comments

Comments
 (0)
Please sign in to comment.