Clarify comment for LogicalTapeSetBlocks().
authorJeff Davis <[email protected]>
Mon, 25 Mar 2024 18:51:44 +0000 (11:51 -0700)
committerJeff Davis <[email protected]>
Mon, 25 Mar 2024 18:51:44 +0000 (11:51 -0700)
Discussion: https://postgr.es/m/1229327.1711160246@sss.pgh.pa.us
Backpatch-through: 13

src/backend/utils/sort/logtape.c

index 9496ec3d3e8dfbb58f59d9485dfba40edea6c101..44b30e86adf470dd5a244a8567214b6b4873cc23 100644 (file)
@@ -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)