Skip to content

Commit 94b88be

Browse files
committed
fix: volatile to atomic
Signed-off-by: composer <[email protected]>
1 parent a4871c7 commit 94b88be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/out_doris/doris.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@
2222

2323
#include <fluent-bit/flb_pthread.h>
2424
#include <fluent-bit/flb_sds.h>
25+
#include <stdatomic.h>
2526

2627
struct flb_upstream;
2728
struct flb_output_instance;
2829
struct mk_list;
2930

3031
struct flb_doris_progress_reporter {
31-
volatile int running;
32+
atomic_int running;
3233
size_t total_bytes;
3334
size_t total_rows;
3435
size_t failed_rows;

0 commit comments

Comments
 (0)