Skip to content

Commit

Permalink
using atomic instead of local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ariesdevil committed Jan 16, 2023
1 parent e794b1e commit ae50f60
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl InputContext {
block_compact_thresholds,
format_options: file_format_options,
on_error_mode,
on_error_count: AtomicU64::ZERO,
on_error_count: AtomicU64::new(0),
})
}

Expand Down Expand Up @@ -223,7 +223,7 @@ impl InputContext {
block_compact_thresholds,
format_options: file_format_options,
on_error_mode: OnErrorMode::AbortNum(1),
on_error_count: AtomicU64::ZERO,
on_error_count: AtomicU64::new(0),
})
}

Expand Down Expand Up @@ -261,7 +261,7 @@ impl InputContext {
block_compact_thresholds,
format_options: file_format_options,
on_error_mode: OnErrorMode::AbortNum(1),
on_error_count: AtomicU64::ZERO,
on_error_count: AtomicU64::new(0),
})
}

Expand Down

0 comments on commit ae50f60

Please sign in to comment.