Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6de4845

Browse files
author
Alexander Korotkov
committed
Fix reading current wait event.
1 parentf19f38d commit6de4845

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)

[8]ページ先頭

©2009-2025 Movatter.jp