Skip to content

Commit

Permalink
Improve invalidate writeset (#370)
Browse files Browse the repository at this point in the history
## Describe your changes and provide context

## Testing performed to validate your change
  • Loading branch information
udpatil authored Dec 4, 2023
1 parent d4d8c1e commit 466e81d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions store/multiversion/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ func (s *Store) ValidateTransactionState(index int) (bool, []int) {
}

func (s *Store) WriteLatestToStore() {
// we expect the estimateFlags to be empty
s.txEstimateFlags.Range(func(key, value interface{}) bool {
panic("estimate flags should be empty when writing to parent store")
return false
})
// sort the keys
keys := []string{}
s.multiVersionMap.Range(func(key, value interface{}) bool {
Expand Down

0 comments on commit 466e81d

Please sign in to comment.