]> granicus.if.org Git - postgresql/commitdiff
Correct cheking in findParents(). i
authorTeodor Sigaev <teodor@sigaev.ru>
Mon, 29 May 2006 08:39:44 +0000 (08:39 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Mon, 29 May 2006 08:39:44 +0000 (08:39 +0000)
From Andreas Seltenreich <andreas+pg@gate450.dyndns.org>

src/backend/access/gin/ginbtree.c

index 6db094031e8d1db4cef38b9fd7adea3fa896913d..77de0c6cdd23459fc40cbcb77a0e88d808b96505 100644 (file)
@@ -8,7 +8,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * 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,
        Assert( !GinPageIsLeaf(page) );
 
        /* 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;
                return;
        }