aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-04-16 09:51:49 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-04-16 09:51:49 +0000
commit961ad3fdd95f621e34a1680e42ff859f0bcb5682 (patch)
tree3794ec1b2c1f7f2f1a7a397a48d568bb1144811f /src/backend/access/transam/xlog.c
parent78974cfb9ba208516a4824466b6053cc48839ce2 (diff)
downloadpostgresql-961ad3fdd95f621e34a1680e42ff859f0bcb5682.tar.gz
postgresql-961ad3fdd95f621e34a1680e42ff859f0bcb5682.zip
On Windows, syslogger runs in two threads. The main thread processes config
reload and rotation signals, and a helper thread reads messages from the pipe and writes them to the log file. However, server code isn't generally thread-safe, so if both try to do e.g palloc()/pfree() at the same time, bad things will happen. To fix that, use a critical section (which is like a mutex) to enforce that only one the threads are active at a time.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions