From: Peter Geoghegan Date: Mon, 16 Mar 2020 22:51:06 +0000 (-0700) Subject: nbtree: Fix obsolete _bt_search() comment. X-Git-Tag: REL_13_BETA1~548 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=113758155c11cf993ca0ecee8856e300a2525a30;p=postgresql.git nbtree: Fix obsolete _bt_search() comment. Oversight in commit d2086b08b02. --- diff --git a/src/backend/access/nbtree/nbtsearch.c b/src/backend/access/nbtree/nbtsearch.c index 7aaa8c17b0d..8ff49ce6d6f 100644 --- a/src/backend/access/nbtree/nbtsearch.c +++ b/src/backend/access/nbtree/nbtsearch.c @@ -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