mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Have to release meta page before reading root one!
< 6.5 versions were just not affected by this bug due to locking.
This commit is contained in:
parent
06385ccbd5
commit
43c135e351
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.23 1999/05/25 22:04:12 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.24 1999/06/07 14:28:22 vadim Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* Postgres btree pages look like ordinary relation pages. The opaque
|
* Postgres btree pages look like ordinary relation pages. The opaque
|
||||||
@ -265,10 +265,10 @@ _bt_getroot(Relation rel, int access)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rootbuf = _bt_getbuf(rel, metad->btm_root, access);
|
rootblkno = metad->btm_root;
|
||||||
|
_bt_relbuf(rel, metabuf, BT_READ); /* done with the meta page */
|
||||||
|
|
||||||
/* done with the meta page */
|
rootbuf = _bt_getbuf(rel, rootblkno, access);
|
||||||
_bt_relbuf(rel, metabuf, BT_READ);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user