git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 78974cf) | patch
On Windows, syslogger runs in two threads. The main thread processes config
2010年4月16日 09:51:49 +0000 (09:51 +0000)
2010年4月16日 09:51:49 +0000 (09:51 +0000)
commit 961ad3fdd95f621e34a1680e42ff859f0bcb5682
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.
src/backend/postmaster/syslogger.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /