in wal.go [159:180]
func createMappingUpdate(old walMapping, tx *txWalState) walMapping {
if !tx.Updated() {
return nil
}
new := walMapping{}
for id, walID := range old {
if tx.free.Has(id) {
continue
}
if _, exists := tx.new[id]; exists {
continue
}
new[id] = walID
}
for id, walID := range tx.new {
new[id] = walID
}
return new
}