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:11 +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 930a35b0093de881eec3c366f1fb4a607cbbc29e..0a6cd025293e3add74267fb62866fbdc81342d7f 100644 (file)
@@ -432,7 +432,7 @@ gseg_picksplit(GistEntryVector *entryvec,
                else
                {
                        datum_r = union_dr;
-                       size_r = size_alpha;
+                       size_r = size_beta;
                        *right++ = i;
                        v->spl_nright++;
                }