Dumping cyclic error_log memory

Maxim Dounin mdounin at mdounin.ru
Thu Jan 9 11:45:56 UTC 2020


On Wed, Jan 08, 2020 at 06:08:59PM -0800, Robert Paprocki wrote:

> A curious point then, why ngx_atomic_fetch_add is used to 
> advance the buffer position, if an atomic operation isn’t 
> necessary since the buffer isn’t shared. Is it a style choice?

It is to make debug logging work in threads.

Maxim Dounin

More information about the nginx-devel mailing list