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

Appearance settings

Commit d129c07

Browse filesBrowse files
Correct nbtree page split lock coupling comment.
There is no reason to distinguish between readers and writers here.
1 parent 1b9cde5 commit d129c07
Copy full SHA for d129c07

File tree

Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/backend/access/nbtree/nbtinsert.c
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,11 +1861,9 @@ _bt_split(Relation rel, BTScanInsert itup_key, Buffer buf, Buffer cbuf,
18611861
}
18621862

18631863
/*
1864-
* We have to grab the right sibling (if any) and fix the prev pointer
1865-
* there. We are guaranteed that this is deadlock-free since no other
1866-
* writer will be holding a lock on that page and trying to move left, and
1867-
* all readers release locks on a page before trying to fetch its
1868-
* neighbors.
1864+
* We have to grab the original right sibling (if any) and update its prev
1865+
* link. We are guaranteed that this is deadlock-free, since we couple
1866+
* the locks in the standard order: left to right.
18691867
*/
18701868
if (!isrightmost)
18711869
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.