Skip to content
Snippets Groups Projects
Commit e7f7cf4a authored by Vadim B. Mikheev's avatar Vadim B. Mikheev
Browse files

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).
parent 4a8c3ddd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment