diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-01-09 21:08:50 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-01-09 21:08:50 +0000 |
commit | 38081fd000a4c203f35e6516ba43d7e88609f940 (patch) | |
tree | b953e91460e73021d414dc7d8d961d3694d9ca5e /src/backend/access | |
parent | a76c86c7c14804e4309a00b241345ee058478ac1 (diff) | |
download | postgresql-38081fd000a4c203f35e6516ba43d7e88609f940.tar.gz postgresql-38081fd000a4c203f35e6516ba43d7e88609f940.zip |
Change PG_DELAY from msec to usec and use it consistenly rather than
select(). Add Win32 Sleep() for delay.
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/transam/xact.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index c7725b0f621..56ecf9d2f43 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.159 2004/01/07 18:56:24 neilc Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.160 2004/01/09 21:08:46 momjian Exp $ * * NOTES * Transaction aborts can now occur two ways: @@ -561,13 +561,7 @@ RecordTransactionCommit(void) */ if (CommitDelay > 0 && enableFsync && CountActiveBackends() >= CommitSiblings) - { - struct timeval delay; - - delay.tv_sec = 0; - delay.tv_usec = CommitDelay; - (void) select(0, NULL, NULL, NULL, &delay); - } + PG_USLEEP(CommitDelay); XLogFlush(recptr); } |