BRI wasn't merging write index records that were next to each other.
restore code to do that.