In the final emptying phase of the new GiST buffering build, set the
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 Sep 2011 10:00:44 +0000 (13:00 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 12 Sep 2011 10:06:06 +0000 (13:06 +0300)
commit8caf6132c7498b2b9400a5496a29e48c1c0aa516
treee24571b86dc3d004f7061c8dd6750d4ae622ad20
parentb0025bd95703aaedc4ff23ddcfbde9597fa0919d
In the final emptying phase of the new GiST buffering build, set the
queuedForEmptying flag correctly on buffer when adding it to the queue.
Also, don't add buffer to the queue if it's there already. These were
harmless oversights; failing to set the flag just means that a buffer might
get added to the queue twice if more tuples are added to it (although that
can't actually happen at this point because all the upper buffers have
already been emptied), and having the same buffer twice in the emptying
queue is harmless. But better be tidy.
src/backend/access/gist/gistbuild.c