Fix contrib/seg's GiST picksplit method.
authorTom Lane <[email protected]>
Thu, 16 Dec 2010 02:22:38 +0000 (21:22 -0500)
committerTom Lane <[email protected]>
Thu, 16 Dec 2010 02:23:43 +0000 (21:23 -0500)
Fix the same size_alpha versus size_beta typo that was recently fixed
in contrib/cube.  Noted by Alexander Korotkov.

Back-patch to all supported branches (there is a more invasive fix in
HEAD).

contrib/seg/seg.c

index aea86765568685b73e9d43e0548aa4075552801d..3354a90094278d0fe5a49d358960057325d5584d 100644 (file)
@@ -426,7 +426,7 @@ gseg_picksplit(GistEntryVector *entryvec,
                else
                {
                        datum_r = union_dr;
-                       size_r = size_alpha;
+                       size_r = size_beta;
                        *right++ = i;
                        v->spl_nright++;
                }