diff --git a/fdbserver/MutationTracking.cpp b/fdbserver/MutationTracking.cpp index f49febf05d..ddd17437a3 100644 --- a/fdbserver/MutationTracking.cpp +++ b/fdbserver/MutationTracking.cpp @@ -26,6 +26,7 @@ #error "You cannot use mutation tracking in a clean/release build." #endif +// Track up to 2 keys in simulation via enabling MUTATION_TRACKING_ENABLED and setting the keys here. StringRef debugKey = LiteralStringRef( "" ); StringRef debugKey2 = LiteralStringRef( "\xff\xff\xff\xff" ); diff --git a/fdbserver/TLogServer.actor.cpp b/fdbserver/TLogServer.actor.cpp index bbcd9f7606..50c4ea4038 100644 --- a/fdbserver/TLogServer.actor.cpp +++ b/fdbserver/TLogServer.actor.cpp @@ -1375,7 +1375,7 @@ void peekMessagesFromMemory( Reference self, TLogPeekRequest const& req } // We need the 4 byte length prefix to be a TagsAndMessage format, but that prefix is added as part of StringRef serialization. - int offset = messages.getLength(); + int offset = messages.getLength(); messages << it->second.toStringRef(); void* data = messages.getData(); DEBUG_TAGS_AND_MESSAGE("TLogPeek", currentVersion, StringRef((uint8_t*)data+offset, messages.getLength()-offset))