Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: prevent reuse of time bounded iterators
`(*rocksDBBatch).NewTimeboundedIterator` was caching the iterator in a way that would return the iterator in future calls to `(*rocksDBBatch).NewIterator`, which was a correctness problem. Luckily, the fallout was somewhat limited by the fact that we only use time bounded iterators when resolving an intent, and that is usually (but not always) the last operation carried out on the batch. This was introduced in #21078, which landed around Jan 15 2018, so the bug has not made it into a release yet, though we'll have to bump our alpha (#21657). Release note: None Fixes #21689.
- Loading branch information