Skip to content

Commit

Permalink
Swap quic counters with 0 while reporting (#24754) (#24758)
Browse files Browse the repository at this point in the history
(cherry picked from commit ded6ac6)

Co-authored-by: Pankaj Garg <[email protected]>
  • Loading branch information
mergify[bot] and pgarg66 authored Apr 27, 2022
1 parent 721ec4a commit 3b6c5c0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions streamer/src/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,52 +373,52 @@ impl StreamStats {
),
(
"connection_add_failed",
self.connection_add_failed.load(Ordering::Relaxed),
self.connection_add_failed.swap(0, Ordering::Relaxed),
i64
),
(
"connection_setup_timeout",
self.connection_setup_timeout.load(Ordering::Relaxed),
self.connection_setup_timeout.swap(0, Ordering::Relaxed),
i64
),
(
"invalid_chunk",
self.total_invalid_chunks.load(Ordering::Relaxed),
self.total_invalid_chunks.swap(0, Ordering::Relaxed),
i64
),
(
"invalid_chunk_size",
self.total_invalid_chunk_size.load(Ordering::Relaxed),
self.total_invalid_chunk_size.swap(0, Ordering::Relaxed),
i64
),
(
"packets_allocated",
self.total_packets_allocated.load(Ordering::Relaxed),
self.total_packets_allocated.swap(0, Ordering::Relaxed),
i64
),
(
"chunks_received",
self.total_chunks_received.load(Ordering::Relaxed),
self.total_chunks_received.swap(0, Ordering::Relaxed),
i64
),
(
"packet_batch_send_error",
self.total_packet_batch_send_err.load(Ordering::Relaxed),
self.total_packet_batch_send_err.swap(0, Ordering::Relaxed),
i64
),
(
"packet_batches_sent",
self.total_packet_batches_sent.load(Ordering::Relaxed),
self.total_packet_batches_sent.swap(0, Ordering::Relaxed),
i64
),
(
"packet_batch_empty",
self.total_packet_batches_none.load(Ordering::Relaxed),
self.total_packet_batches_none.swap(0, Ordering::Relaxed),
i64
),
(
"stream_read_errors",
self.total_stream_read_errors.load(Ordering::Relaxed),
self.total_stream_read_errors.swap(0, Ordering::Relaxed),
i64
),
);
Expand Down

0 comments on commit 3b6c5c0

Please sign in to comment.