]> granicus.if.org Git - postgresql/commit
At least on HPUX, select with delay.tv_sec = 0 and delay.tv_usec = 1000000
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Feb 2001 22:42:45 +0000 (22:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Feb 2001 22:42:45 +0000 (22:42 +0000)
commit496ea7a87633a64ddab65b375e0be56fa60873cc
tree13d2f5498757d6a2f65d27a7caf4553e066c92d8
parent3460181c3c571d690576c1d7621abfbd78861112
At least on HPUX, select with delay.tv_sec = 0 and delay.tv_usec = 1000000
does not lead to a one-second delay, but to an immediate EINVAL failure.
This causes CHECKPOINT to crash with s_lock_stuck much too quickly :-(.
Fix by breaking down the requested wait div/mod 1e6.
src/backend/storage/buffer/s_lock.c