Commit 66c5bd3a authored by Peter Geoghegan's avatar Peter Geoghegan

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
parent 2b1394fc
...@@ -266,9 +266,7 @@ _bt_update_meta_cleanup_info(Relation rel, TransactionId oldestBtpoXact, ...@@ -266,9 +266,7 @@ _bt_update_meta_cleanup_info(Relation rel, TransactionId oldestBtpoXact,
* *
* Since the root page can move around the btree file, we have to read * Since the root page can move around the btree file, we have to read
* its location from the metadata page, and then read the root page * its location from the metadata page, and then read the root page
* itself. If no root page exists yet, we have to create one. The * itself. If no root page exists yet, we have to create one.
* standard class of race conditions exists here; I think I covered
* them all in the intricate dance of lock requests below.
* *
* The access type parameter (BT_READ or BT_WRITE) controls whether * The access type parameter (BT_READ or BT_WRITE) controls whether
* a new root page will be created or not. If access = BT_READ, * a new root page will be created or not. If access = BT_READ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment