pgsql: Change LogicalTapeSetBlocks() to use nBlocksWritten.

2020-09-15 Thread Jeff Davis
Change LogicalTapeSetBlocks() to use nBlocksWritten. Previously, it was based on nBlocksAllocated to account for tapes with open write buffers that may not have made it to the BufFile yet. That was unnecessary, because callers do not need to get the number of blocks while a tape has an open write

pgsql: Change LogicalTapeSetBlocks() to use nBlocksWritten.

2020-09-15 Thread Jeff Davis
Change LogicalTapeSetBlocks() to use nBlocksWritten. Previously, it was based on nBlocksAllocated to account for tapes with open write buffers that may not have made it to the BufFile yet. That was unnecessary, because callers do not need to get the number of blocks while a tape has an open write