Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4e27b30

Browse files
committed
Do _bt_wrtbuf() outside critical section, per discussion with Vadim 1/19.
1 parent d7157d3 commit 4e27b30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/access/nbtree/nbtinsert.c

Lines changed: 3 additions & 2 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/nbtinsert.c,v 1.74 2001/01/14 05:08:14 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.75 2001/01/23 23:29:22 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -861,10 +861,11 @@ _bt_split(Relation rel, Buffer buf, OffsetNumber firstright,
861861

862862
PageRestoreTempPage(leftpage, origpage);
863863

864+
END_CRIT_SECTION();
865+
864866
/* write and release the old right sibling */
865867
if (!P_RIGHTMOST(ropaque))
866868
_bt_wrtbuf(rel, sbuf);
867-
END_CRIT_SECTION();
868869

869870
/* split's done */
870871
return rbuf;

0 commit comments

Comments
 (0)