Skip to content

Commit 4f4fe70

Browse files
fix: BatchLogRecordProcessor::ForceFlush is not waking up bg thread
1 parent 793c7bd commit 4f4fe70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/src/logs/batch_log_record_processor.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ bool BatchLogRecordProcessor::ForceFlush(std::chrono::microseconds timeout) noex
136136
if (synchronization_data_->force_flush_pending_sequence.load(std::memory_order_acquire) >
137137
synchronization_data_->force_flush_notified_sequence.load(std::memory_order_acquire))
138138
{
139+
synchronization_data_->is_force_wakeup_background_worker.store(true, std::memory_order_release);
139140
synchronization_data_->cv.notify_all();
140141
}
141142

0 commit comments

Comments
 (0)