File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/backend/access/nbtree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* 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 $
12
12
*
13
13
* NOTES
14
14
* Postgres btree pages look like ordinary relation pages. The opaque
@@ -265,10 +265,10 @@ _bt_getroot(Relation rel, int access)
265
265
}
266
266
else
267
267
{
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 */
269
270
270
- /* done with the meta page */
271
- _bt_relbuf (rel , metabuf , BT_READ );
271
+ rootbuf = _bt_getbuf (rel , rootblkno , access );
272
272
}
273
273
274
274
/*
You can’t perform that action at this time.
0 commit comments