Closed ltamasi closed 1 month ago
This pull request was exported from Phabricator. Differential Revision: D57750212
This pull request was exported from Phabricator. Differential Revision: D57750212
This pull request has been merged in facebook/rocksdb@f044b6a6ad812443345ad4a6f680072930379b3b.
Summary: Two fixes: 1)
Random::Uniform(n)
returns an integer from the interval [0, n - 1], soUniform(2)
returns 0 or 1, which means is that we have apparently never covered transactions with deletions in the test. (To prevent similar issues, the patch cleans this write logic up a bit using anenum class
for the type of write.) 2) The keys passed in toTestMultiGet
can have duplicates. What this boils down to is that we have to keep track of the latest expected values for read-your-own-writes on a per-key basis.Differential Revision: D57750212