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

Commit 4754904

Browse files
committed
Fix assert condition in ModifyWaitEvent
1 parent e0f9b01 commit 4754904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/storage/ipc/latch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ ModifyWaitEvent(WaitEventSet *set, int pos, uint32 events, Latch *latch)
767767
{
768768
WaitEvent *event;
769769

770-
Assert(pos < set->nevents);
770+
Assert(pos < set->nevents_space);
771771

772772
event = &set->events[pos];
773773

0 commit comments

Comments
 (0)