Skip to content

Commit

Permalink
stat_total_reads_processed is not atomic anymore
Browse files Browse the repository at this point in the history
Signed-off-by: naglera <[email protected]>
  • Loading branch information
naglera committed Jul 10, 2024
1 parent e8200bc commit 41cc472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -2756,7 +2756,7 @@ int readIntoReplDataBlock(connection *conn, replDataBufBlock *data_block, size_t
return C_ERR;
}
data_block->used += nread;
atomic_fetch_add_explicit(&server.stat_total_reads_processed, 1, memory_order_relaxed);
server.stat_total_reads_processed++;
return read - nread;
}

Expand Down

0 comments on commit 41cc472

Please sign in to comment.