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

Commit 66c5bd3

Browse files
Remove obsolete nbtree "get root" comment.
Remove a very old Berkeley era comment that doesn't seem to have anything to do with the current locking considerations within _bt_getroot(). Discussion: https://postgr.es/m/CAH2-WzmA2H+rL-xxF5o6QhMD+9x6cJTnz2Mr3Li_pbPBmqoTBQ@mail.gmail.com
1 parent 2b1394f commit 66c5bd3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/access/nbtree/nbtpage.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,7 @@ _bt_update_meta_cleanup_info(Relation rel, TransactionId oldestBtpoXact,
266266
*
267267
* Since the root page can move around the btree file, we have to read
268268
* its location from the metadata page, and then read the root page
269-
* itself. If no root page exists yet, we have to create one. The
270-
* standard class of race conditions exists here; I think I covered
271-
* them all in the intricate dance of lock requests below.
269+
* itself. If no root page exists yet, we have to create one.
272270
*
273271
* The access type parameter (BT_READ or BT_WRITE) controls whether
274272
* a new root page will be created or not. If access = BT_READ,

0 commit comments

Comments
 (0)