Skip to content

Commit

Permalink
Update minor nit
Browse files Browse the repository at this point in the history
  • Loading branch information
DebajitDas committed Mar 14, 2022
1 parent e6ea337 commit e99263a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion sdk/include/opentelemetry/sdk/logs/batch_log_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ class BatchLogProcessor : public LogProcessor

/* Synchronization primitives */
std::condition_variable cv_, force_flush_cv_, async_shutdown_cv_;
;
std::mutex cv_m_, force_flush_cv_m_, shutdown_m_, async_shutdown_m_;

/* The buffer/queue to which the ended logs are added */
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/trace/batch_span_processor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void BatchSpanProcessor::Export(const bool was_force_flush_called)
/* Call the sync Export when force flush was called, even if
is_export_async_ is true.
*/
if (is_export_async_ == false || was_force_flush_called == true)
if (is_export_async_ == false)
{
exporter_->Export(nostd::span<std::unique_ptr<Recordable>>(spans_arr.data(), spans_arr.size()));

Expand Down

0 comments on commit e99263a

Please sign in to comment.