diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-05-20 11:30:32 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-05-20 11:30:32 +0000 |
commit | e7f7cf4a1c25178bf7df6f61d6908ffd22370ee2 (patch) | |
tree | 1ad33daf148252d8eb9ac024e39ba9a58c8f3726 /src/backend/access/gist/gist.c | |
parent | 4a8c3dddc364c6098e3740a201627f4b544ca274 (diff) | |
download | postgresql-e7f7cf4a1c25178bf7df6f61d6908ffd22370ee2.tar.gz postgresql-e7f7cf4a1c25178bf7df6f61d6908ffd22370ee2.zip |
1. LocalBufferSync(): set nextFreeLocalBuf to 0 - we're freeing
all local buffers @ xact commit, so accordingly nextFreeLocalBuf
is first local buffer now.
It helps to avoid unnecessary local buffer allocations in LocalBufferAlloc()
latter ("memmory leaks" in 'order by').
2. ResetLocalBufferPool() lost allocated local buffers:
memset(LocalBufferDescriptors, 0, sizeof(BufferDesc) * NLocBuffer);
(local buffers leak @ xact aborts).
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions