aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-03-25 11:51:44 -0700
committerJeff Davis <jdavis@postgresql.org>2024-03-25 11:51:44 -0700
commitbc5fcaa289a92941a1c7b191c7c9311bd742e172 (patch)
treecb17da9cdc5dd0cd75e4c56c7919c2a37467f7fc /src
parent3ff01b2b6e7e8627b191a2c8c2690c8ea2f0820d (diff)
downloadpostgresql-bc5fcaa289a92941a1c7b191c7c9311bd742e172.tar.gz
postgresql-bc5fcaa289a92941a1c7b191c7c9311bd742e172.zip
Clarify comment for LogicalTapeSetBlocks().
Discussion: https://postgr.es/m/1229327.1711160246@sss.pgh.pa.us Backpatch-through: 13
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/sort/logtape.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/utils/sort/logtape.c b/src/backend/utils/sort/logtape.c
index 9496ec3d3e8..44b30e86adf 100644
--- a/src/backend/utils/sort/logtape.c
+++ b/src/backend/utils/sort/logtape.c
@@ -1174,10 +1174,8 @@ LogicalTapeTell(LogicalTape *lt, int64 *blocknum, int *offset)
}
/*
- * Obtain total disk space currently used by a LogicalTapeSet, in blocks.
- *
- * This should not be called while there are open write buffers; otherwise it
- * may not account for buffered data.
+ * Obtain total disk space currently used by a LogicalTapeSet, in blocks. Does
+ * not account for open write buffer, if any.
*/
int64
LogicalTapeSetBlocks(LogicalTapeSet *lts)