Changing the last suggestions from review.

This commit is contained in:
Alex Miller 2020-05-13 18:48:43 -07:00
parent 342eebebdb
commit bf6d056095
2 changed files with 2 additions and 1 deletions

View File

@ -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" );

View File

@ -1375,7 +1375,7 @@ void peekMessagesFromMemory( Reference<LogData> 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))