aboutsummaryrefslogtreecommitdiff
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 12:00:42 -0700
commitb74e4a08b9835e18a14fd3f23e19ddd460ed5b88 (patch)
tree871c1d40f386e93baeb4f7de5e9454c482d085c0
parent0d466bce9ee19a5f7ef6c2964376aa6572ef76fd (diff)
downloadpostgresql-b74e4a08b9835e18a14fd3f23e19ddd460ed5b88.tar.gz
postgresql-b74e4a08b9835e18a14fd3f23e19ddd460ed5b88.zip
Clarify comment for LogicalTapeSetBlocks().
Discussion: https://postgr.es/m/1229327.1711160246@sss.pgh.pa.us Backpatch-through: 13
-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 31db75d6a44..fb0d395f44a 100644
--- a/src/backend/utils/sort/logtape.c
+++ b/src/backend/utils/sort/logtape.c
@@ -1181,10 +1181,8 @@ LogicalTapeTell(LogicalTape *lt, long *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.
*/
long
LogicalTapeSetBlocks(LogicalTapeSet *lts)