Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 84cc142

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 bfac8f8 commit 84cc142

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
@@ -1603,7 +1603,9 @@ SlruSyncFileTag(SlruCtl ctl, const FileTag *ftag, char *path)
16031603
if (fd < 0)
16041604
return -1;
16051605

1606+
pgstat_report_wait_start(WAIT_EVENT_SLRU_FLUSH_SYNC);
16061607
result = pg_fsync(fd);
1608+
pgstat_report_wait_end();
16071609
save_errno = errno;
16081610

16091611
CloseTransientFile(fd);

0 commit comments

Comments
 (0)