Skip to content

Commit e8abf97

Browse files
committed
Prevent use of uninitialized variable
Per buildfarm member longfin.
1 parent 11074f2 commit e8abf97

File tree

1 file changed

+2
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-1
lines changed

src/backend/storage/lmgr/lmgr.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ WaitForLockersMultiple(List *locktags, LOCKMODE lockmode, bool progress)
880880
holders = lappend(holders,
881881
GetLockConflicts(locktag, lockmode,
882882
progress ? &count : NULL));
883-
total += count;
883+
if (progress)
884+
total += count;
884885
}
885886

886887
if (progress)

0 commit comments

Comments
 (0)