Fix double shared memory allocation.
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 21 Jul 2017 10:31:49 +0000 (13:31 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 21 Jul 2017 10:31:49 +0000 (13:31 +0300)
commit38a4a5349c8f54a8d835675d395365d11628afac
treeaf26c32da6f2b52dfded6b2a8e1280c6ab8a31ec
parent5512427b19e79ac95535e7c942bd479db807f7be
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.
src/backend/access/transam/slru.c