nbtree: Fix obsolete _bt_search() comment.
authorPeter Geoghegan <[email protected]>
Mon, 16 Mar 2020 22:51:06 +0000 (15:51 -0700)
committerPeter Geoghegan <[email protected]>
Mon, 16 Mar 2020 22:51:06 +0000 (15:51 -0700)
Oversight in commit d2086b08b02.

src/backend/access/nbtree/nbtsearch.c

index 7aaa8c17b0ded4fde6cd76b84f18bd8cf52b6136..8ff49ce6d6fc6689f229d834496fa18a239a007c 100644 (file)
@@ -83,8 +83,8 @@ _bt_drop_lock_and_maybe_pin(IndexScanDesc scan, BTScanPos sp)
  * but it can omit the rightmost column(s) of the index.
  *
  * Return value is a stack of parent-page pointers.  *bufP is set to the
- * address of the leaf-page buffer, which is read-locked and pinned.
- * No locks are held on the parent pages, however!
+ * address of the leaf-page buffer, which is locked and pinned.  No locks
+ * are held on the parent pages, however!
  *
  * If the snapshot parameter is not NULL, "old snapshot" checking will take
  * place during the descent through the tree.  This is not needed when