Skip to content

Commit

Permalink
Update batch_log_record_processor.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
msiddhu authored Jun 27, 2024
1 parent f91df52 commit b6ec481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/logs/batch_log_record_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void BatchLogRecordProcessor::Export()
break;
}

// Reserve space for number of records and avoid reallocation of vector.
// Reserve space for the number of records
records_arr.reserve(num_records_to_export);
buffer_.Consume(num_records_to_export,
[&](CircularBufferRange<AtomicUniquePtr<Recordable>> range) noexcept {
Expand Down

0 comments on commit b6ec481

Please sign in to comment.