Fix double shared memory allocation.

Teodor Sigaev <teodor@sigaev.ru>

Commit: 7e1fb4c59e4ac86de2640d0f3453fde270ec1ff8
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2017-07-21T10:31:20Z
Releases: 10.0
Fix double shared memory allocation.

SLRU buffer lwlocks are allocated twice by oversight in commit
fe702a7b3f9f2bc5bf6d173166d7d55226af82c8 where that locks were moved to
separate tranche. The bug doesn't have user-visible effects except small
overspending of shared memory.

Backpatch to 9.6 where it was introduced.

Alexander Korotkov with small editorization by me.

Files

PathChange+/−
src/backend/access/transam/slru.c modified +7 −3