1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00
Files
postgres/src/backend
Tom Lane e32c5f118e Be more wary about partially-valid LOCALLOCK data in RemoveLocalLock().
RemoveLocalLock() must consider the possibility that LockAcquireExtended()
failed to palloc the initial space for a locallock's lockOwners array.
I had evidently meant to cope with this hazard when the code was originally
written (commit 1785acebf2), but missed that
the pfree needed to be protected with an if-test.  Just to make sure things
are left in a clean state, reset numLockOwners as well.

Per low-memory testing by Andreas Seltenreich.  Back-patch to all supported
branches.
2015-09-20 16:48:44 -04:00
..
2014-01-07 16:05:30 -05:00
2014-12-16 16:38:20 +02:00
2015-09-10 10:25:58 -04:00
2015-03-31 15:13:35 +03:00
2015-05-18 08:38:34 -04:00
2015-02-01 23:18:42 -05:00