Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit43c135e

Browse files
committed
Have to release meta page before reading root one!
< 6.5 versions were just not affected by this bug due to locking.
1 parent06385cc commit43c135e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/access/nbtree/nbtpage.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.23 1999/05/25 22:04:12 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtpage.c,v 1.24 1999/06/07 14:28:22 vadim Exp $
1212
*
1313
*NOTES
1414
* Postgres btree pages look like ordinary relation pages.The opaque
@@ -265,10 +265,10 @@ _bt_getroot(Relation rel, int access)
265265
}
266266
else
267267
{
268-
rootbuf=_bt_getbuf(rel,metad->btm_root,access);
268+
rootblkno=metad->btm_root;
269+
_bt_relbuf(rel,metabuf,BT_READ);/* done with the meta page */
269270

270-
/* done with the meta page */
271-
_bt_relbuf(rel,metabuf,BT_READ);
271+
rootbuf=_bt_getbuf(rel,rootblkno,access);
272272
}
273273

274274
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp