Update RYWIterator test to match #6993 (#7046)

There's a test which checks behavior against a reference implementation,
and so the reference implementation needs to be updated as well.
This commit is contained in:
Andrew Noyes 2022-05-02 18:22:59 -07:00 committed by GitHub
parent 05e63bc703
commit 90dae38d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -676,7 +676,10 @@ TEST_CASE("/fdbclient/WriteMap/random") {
KeyRef key = RandomTestImpl::getRandomKey(arena);
ValueRef value = RandomTestImpl::getRandomValue(arena);
writes.mutate(key, MutationRef::SetVersionstampedValue, value, addConflict);
setMap[key].push(RYWMutation(value, MutationRef::SetVersionstampedValue));
if (unreadableMap[key])
setMap[key].push(RYWMutation(value, MutationRef::SetVersionstampedValue));
else
setMap[key] = OperationStack(RYWMutation(value, MutationRef::SetVersionstampedValue));
if (addConflict)
conflictMap.insert(key, true);
clearMap.insert(key, false);