Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit496ea7a

Browse files
committed
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.
1 parent3460181 commit496ea7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/storage/buffer/s_lock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.33 2001/02/18 04:39:42 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/Attic/s_lock.c,v 1.34 2001/02/24 22:42:45 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -91,8 +91,8 @@ s_lock_sleep(unsigned spins, int timeout, int microsec,
9191

9292
if (microsec>0)
9393
{
94-
delay.tv_sec=0;
95-
delay.tv_usec=microsec;
94+
delay.tv_sec=microsec /1000000;
95+
delay.tv_usec=microsec %1000000;
9696
}
9797
else
9898
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp