From e8abf97af770401934a2fc4887940b76403520f0 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Tue, 2 Apr 2019 16:03:26 -0300 Subject: [PATCH] Prevent use of uninitialized variable Per buildfarm member longfin. --- src/backend/storage/lmgr/lmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/storage/lmgr/lmgr.c b/src/backend/storage/lmgr/lmgr.c index 0b04b09378..106d227a5a 100644 --- a/src/backend/storage/lmgr/lmgr.c +++ b/src/backend/storage/lmgr/lmgr.c @@ -880,7 +880,8 @@ WaitForLockersMultiple(List *locktags, LOCKMODE lockmode, bool progress) holders = lappend(holders, GetLockConflicts(locktag, lockmode, progress ? &count : NULL)); - total += count; + if (progress) + total += count; } if (progress) -- 2.40.0