mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Assert that pgwin32_signal_initialize() has been called early enough.
Before the pgwin32_signal_initialize() call, the backend version of
pg_usleep() has no effect. No in-tree code falls afoul of that today,
but temporary commit 23078689a9
did so.
Discussion: https://postgr.es/m/20190402135442.GA1173872@rfd.leadboat.com
This commit is contained in:
@ -70,6 +70,9 @@ pgwin32_open(const char *fileName, int fileFlags,...)
|
||||
(O_RANDOM | O_SEQUENTIAL | O_TEMPORARY) |
|
||||
_O_SHORT_LIVED | O_DSYNC | O_DIRECT |
|
||||
(O_CREAT | O_TRUNC | O_EXCL) | (O_TEXT | O_BINARY))) == fileFlags);
|
||||
#ifndef FRONTEND
|
||||
Assert(pgwin32_signal_event != NULL); /* small chance of pg_usleep() */
|
||||
#endif
|
||||
|
||||
#ifdef FRONTEND
|
||||
|
||||
|
Reference in New Issue
Block a user