Fix incorrect function reference in comment master github/master
authorRichard Guo <[email protected]>
Fri, 3 Oct 2025 07:34:42 +0000 (16:34 +0900)
committerRichard Guo <[email protected]>
Fri, 3 Oct 2025 07:34:42 +0000 (16:34 +0900)
The comment incorrectly references the defunct function
BufFileOpenShared(), which was replaced in commit dcac5e7ac.

This patch updates the comment to refer to the current function
BufFileOpenFileSet().

Author: Zhang Mingli <[email protected]>
Reviewed-by: wenhui qiu <[email protected]>
Reviewed-by: Richard Guo <[email protected]>
Discussion: https://postgr.es/m/1cb48b4c-54ab-40cc-b355-0b3c2af6d3f7@Spark

src/backend/utils/sort/logtape.c

index e529ceb8260bb0ab0252560a80f63b0e580ef3a7..452d89a8c0fc15e05dbf14659d50f7a7d36e7156 100644 (file)
@@ -681,7 +681,7 @@ LogicalTapeCreate(LogicalTapeSet *lts)
 {
    /*
     * The only thing that currently prevents creating new tapes in leader is
-    * the fact that BufFiles opened using BufFileOpenShared() are read-only
+    * the fact that BufFiles opened using BufFileOpenFileSet() are read-only
     * by definition, but that could be changed if it seemed worthwhile.  For
     * now, writing to the leader tape will raise a "Bad file descriptor"
     * error, so tuplesort must avoid writing to the leader tape altogether.