Clarify comment for LogicalTapeSetBlocks().
authorJeff Davis
Mon, 25 Mar 2024 18:51:44 +0000 (11:51 -0700)
committerJeff Davis
Mon, 25 Mar 2024 19:00:30 +0000 (12:00 -0700)
Discussion: https://postgr.es/m/1229327.1711160246@sss.pgh.pa.us
Backpatch-through: 13

src/backend/utils/sort/logtape.c

index f31878bdee1aec441bd1f80e10266eed1907c9c9..14375b0796b93463f4d448a4f6400348e04f62e4 100644 (file)
@@ -1174,10 +1174,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)