Skip to content

Commit aeb6f4b

Browse files
committed
Re-add tracking of wait event SLRUFlushSync
SLRUFlushSync has been accidently removed during dee663f, that has moved the flush of the SLRU files to the checkpointer, so add it back. The issue has been noticed by Thomas when checking for orphaned wait events. Author: Thomas Munro Reviewed-by: Bharath Rupireddy Discussion: https://postgr.es/m/CA+hUKGK6tqm59KuF1z+h5Y8fsWcu5v8+84kduSHwRzwjB2aa_A@mail.gmail.com
1 parent 0e8e5e8 commit aeb6f4b

File tree

1 file changed

+2
-0
lines changed
  • src/backend/access/transam

1 file changed

+2
-0
lines changed

src/backend/access/transam/slru.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,9 @@ SlruSyncFileTag(SlruCtl ctl, const FileTag *ftag, char *path)
16021602
if (fd < 0)
16031603
return -1;
16041604

1605+
pgstat_report_wait_start(WAIT_EVENT_SLRU_FLUSH_SYNC);
16051606
result = pg_fsync(fd);
1607+
pgstat_report_wait_end();
16061608
save_errno = errno;
16071609

16081610
CloseTransientFile(fd);

0 commit comments

Comments
 (0)