Fix bug - emit kv pair if we end in a conflict range

This commit is contained in:
Andrew Noyes 2020-04-28 18:47:52 +00:00
parent fdd6581167
commit a60e9a7290
1 changed files with 8 additions and 0 deletions

View File

@ -1597,6 +1597,14 @@ Standalone<RangeResultRef> ReadYourWritesTransaction::getWriteConflictRangeInter
}
}
}
if (inConflictRange && conflictBegin < kr.end) {
result.push_back(
result.arena(),
KeyValueRef(conflictBegin.toArena(result.arena())
.withPrefix(LiteralStringRef("\xff\xff/transaction/write_conflict_range/"), result.arena()),
LiteralStringRef("1")));
}
return result;
}