Skip to content

Commit 0144e76

Browse files
Fenimorkindmpgpro
authored andcommitted
FIX testlatch
1 parent a7374ff commit 0144e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/waitlsn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ WaitLSNSetLatch(void)
133133
for (i = 0; i < (MaxConnections+1); i++)
134134
{
135135
SpinLockAcquire(&state->l_arr[i].slock);
136-
if (state->l_arr[i].pid != 0 && !(TestLatch(&state->l_arr[i].latch)))
136+
if (state->l_arr[i].pid != 0)
137137
{
138138
SetLatch(&state->l_arr[i].latch);
139139
}

0 commit comments

Comments
 (0)