]> granicus.if.org Git - postgresql/commit
Change s_lock to not use any zero-delay select() calls; these are just a
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Feb 2001 04:39:42 +0000 (04:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Feb 2001 04:39:42 +0000 (04:39 +0000)
commit33cc5d8a4d0dd7cdf78c6a6851b37799854191d4
tree8d9334993e788eb21dd4c3374174effabaedd43c
parent58c4ab9d6265102d949a0d9035e48a752b3b457f
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.
configure
configure.in
src/backend/access/transam/xlog.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/s_lock.c
src/backend/storage/file/fd.c
src/include/config.h.in
src/include/storage/fd.h
src/include/storage/s_lock.h