1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Correct cheking in findParents(). i

From Andreas Seltenreich <andreas+pg@gate450.dyndns.org>
This commit is contained in:
Teodor Sigaev
2006-05-29 08:39:44 +00:00
parent fd15c87ad7
commit 0a6fde5a26

View 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;
}