Merge pull request #3959 from sfc-gh-ljoswiak/bugfixes/span-downgrade

Only serialize span if TLogVersion >= 6
This commit is contained in:
Trevor Clinkenbeard 2020-10-23 19:52:39 -07:00 committed by GitHub
commit ef50452bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -985,7 +985,7 @@ private:
// Writes transaction info to the message stream for the given location if
// it has not already been written (for the current transaction).
void writeTransactionInfo(int location) {
if (!FLOW_KNOBS->WRITE_TRACING_ENABLED) {
if (!FLOW_KNOBS->WRITE_TRACING_ENABLED || logSystem->getTLogVersion() < TLogVersion::V6) {
return;
}
if (writtenLocations.count(location) == 0) {