mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +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
|
||||
* $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);
|
||||
|
||||
END_CRIT_SECTION();
|
||||
|
||||
/* write and release the old right sibling */
|
||||
if (!P_RIGHTMOST(ropaque))
|
||||
_bt_wrtbuf(rel, sbuf);
|
||||
END_CRIT_SECTION();
|
||||
|
||||
/* split's done */
|
||||
return rbuf;
|
||||
|
Loading…
Reference in New Issue
Block a user