diff options
| author | Alvaro Herrera | 2019-04-02 19:03:26 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2019-04-02 19:03:26 +0000 |
| commit | e8abf97af770401934a2fc4887940b76403520f0 (patch) | |
| tree | 30f92c5e108f76bfe8ee2f3b2bcf85820b7e3cec /src | |
| parent | 11074f26bc072334ab91e5646d113f95f884bd07 (diff) | |
Prevent use of uninitialized variable
Per buildfarm member longfin.
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/storage/lmgr/lmgr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/lmgr.c b/src/backend/storage/lmgr/lmgr.c index 0b04b093782..106d227a5ac 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) |
