Eliminate undefined behaviour

This commit is contained in:
tclinken 2020-05-11 22:30:02 -07:00
parent 667b224fc8
commit 7d84e1b7af
2 changed files with 2 additions and 2 deletions

View File

@ -728,7 +728,7 @@ StringRef setK(Arena& arena, int i) {
#include "fdbserver/ConflictSet.h"
struct ConflictSet {
ConflictSet() : oldestVersion(0) {}
ConflictSet() : oldestVersion(0), removalKey(makeString(0)) {}
~ConflictSet() {}
SkipList versionHistory;

View File

@ -4899,7 +4899,7 @@ public:
#include "fdbserver/art_impl.h"
RedwoodRecordRef VersionedBTree::dbBegin(StringRef(), 0);
RedwoodRecordRef VersionedBTree::dbBegin(LiteralStringRef(""));
RedwoodRecordRef VersionedBTree::dbEnd(LiteralStringRef("\xff\xff\xff\xff\xff"));
VersionedBTree::Counts VersionedBTree::counts;