Skip to content

Commit a2f5680

Browse files
fix: BatchLogRecordProcessor::ForceFlush is not waking up bg thread
1 parent 3b7f564 commit a2f5680

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/src/logs/batch_log_record_processor.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ bool BatchLogRecordProcessor::ForceFlush(std::chrono::microseconds timeout) noex
135135
if (synchronization_data_->force_flush_pending_sequence.load(std::memory_order_acquire) >
136136
synchronization_data_->force_flush_notified_sequence.load(std::memory_order_acquire))
137137
{
138+
synchronization_data_->is_force_wakeup_background_worker.store(true,
139+
std::memory_order_release);
138140
synchronization_data_->cv.notify_all();
139141
}
140142

0 commit comments

Comments
 (0)