Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d061ea2 commit ef02fb1Copy full SHA for ef02fb1
src/backend/storage/ipc/dsm_impl.c
@@ -371,10 +371,12 @@ dsm_impl_posix_resize(int fd, off_t size)
371
* interrupt pending. This avoids the possibility of looping forever
372
* if another backend is repeatedly trying to interrupt us.
373
*/
374
+ pgstat_report_wait_start(WAIT_EVENT_DSM_FILL_ZERO_WRITE);
375
do
376
{
377
rc = posix_fallocate(fd, 0, size);
378
} while (rc == EINTR && !(ProcDiePending || QueryCancelPending));
379
+ pgstat_report_wait_end();
380
381
/*
382
* The caller expects errno to be set, but posix_fallocate() doesn't
0 commit comments