The buffer needs to be Reset() after a Flush(), since the Flush() can be a no-op after a read->write transition. And record numbers are 1-based, not 0-based. This fixes a bug with rewrites of records that have been recently read. Differential revision: https://reviews.llvm.org/D88612
38 KiB
38 KiB