Commit 0a6fde5a authored by Teodor Sigaev's avatar Teodor Sigaev

Correct cheking in findParents(). i

From Andreas Seltenreich <andreas+pg@gate450.dyndns.org>
parent fd15c87a
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginbtree.c,v 1.2 2006/05/26 08:01:17 teodor Exp $ * $PostgreSQL: pgsql/src/backend/access/gin/ginbtree.c,v 1.3 2006/05/29 08:39:44 teodor Exp $
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -189,7 +189,7 @@ findParents( GinBtree btree, GinBtreeStack *stack, ...@@ -189,7 +189,7 @@ findParents( GinBtree btree, GinBtreeStack *stack,
Assert( !GinPageIsLeaf(page) ); Assert( !GinPageIsLeaf(page) );
/* check trivial case */ /* check trivial case */
if ( (root->off != btree->findChildPtr(btree, page, stack->blkno, InvalidOffsetNumber)) != InvalidBuffer ) { if ( (root->off = btree->findChildPtr(btree, page, stack->blkno, InvalidOffsetNumber)) != InvalidOffsetNumber ) {
stack->parent = root; stack->parent = root;
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment