Skip to content

Commit 6de4845

Browse files
author
Alexander Korotkov
committed
Fix reading current wait event.
1 parent f19f38d commit 6de4845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_stat_wait/collector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ ReadCurrentWait(PGPROC *proc, HistoryItem *item)
123123

124124
pg_read_barrier();
125125

126-
event = &wrap->data[(previdx + 1) % 2];
126+
event = &wrap->data[previdx % 2];
127127
item->backendPid = proc->pid;
128128
item->classid = event->classeventid >> 16;
129129
item->eventid = event->classeventid & 0xFFFF;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy