mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
Do _bt_wrtbuf() outside critical section, per discussion with Vadim 1/19.
This commit is contained in:
parent
d7157d32cb
commit
4e27b308e2
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.74 2001/01/14 05:08:14 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.75 2001/01/23 23:29:22 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -861,10 +861,11 @@ _bt_split(Relation rel, Buffer buf, OffsetNumber firstright,
|
|||||||
|
|
||||||
PageRestoreTempPage(leftpage, origpage);
|
PageRestoreTempPage(leftpage, origpage);
|
||||||
|
|
||||||
|
END_CRIT_SECTION();
|
||||||
|
|
||||||
/* write and release the old right sibling */
|
/* write and release the old right sibling */
|
||||||
if (!P_RIGHTMOST(ropaque))
|
if (!P_RIGHTMOST(ropaque))
|
||||||
_bt_wrtbuf(rel, sbuf);
|
_bt_wrtbuf(rel, sbuf);
|
||||||
END_CRIT_SECTION();
|
|
||||||
|
|
||||||
/* split's done */
|
/* split's done */
|
||||||
return rbuf;
|
return rbuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user