flush_writes_range
flush_writes_range(&pts, flush_start_index, flush_end_index);
flush_writes_range(&pts, start_index, pts.index);