CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: tgl@hub.org 01/02/17 23:39:42
Modified files:
. : configure.in configure
src/backend/access/transam: xlog.c
src/backend/storage/buffer: bufmgr.c s_lock.c
src/backend/storage/file: fd.c
src/include : config.h.in
src/include/storage: fd.h s_lock.h
Log message:
Change s_lock to not use any zero-delay select() calls; these are just a
waste of cycles on single-CPU machines, and of dubious utility on multi-CPU
machines too.
Tweak s_lock_stuck so that caller can specify timeout interval, and
increase interval before declaring stuck spinlock for buffer locks and XLOG
locks.
On systems that have fdatasync(), use that rather than fsync() to sync WAL
log writes. Ensure that WAL file is entirely allocated during XLogFileInit.