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

Lines changed: 2 additions & 1 deletion
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)
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