Remove unnecessary debugging trace events

This commit is contained in:
sfc-gh-tclinkenbeard 2021-08-26 17:13:39 -07:00
parent 7f8a1385d5
commit 28f3481656
1 changed files with 0 additions and 4 deletions

View File

@ -202,18 +202,14 @@ class ConfigNodeImpl {
// serializability
ACTOR static Future<Void> getNewGeneration(ConfigNodeImpl* self, ConfigTransactionGetGenerationRequest req) {
state ConfigGeneration generation = wait(getGeneration(self));
TraceEvent("GetNewGenImpl0");
++generation.liveVersion;
TraceEvent("GetNewGenImpl1");
if (req.lastSeenLiveVersion.present()) {
TEST(req.lastSeenLiveVersion.get() >= generation.liveVersion); // Node is lagging behind some other node
generation.liveVersion = std::max(generation.liveVersion, req.lastSeenLiveVersion.get() + 1);
}
self->kvStore->set(KeyValueRef(currentGenerationKey, BinaryWriter::toValue(generation, IncludeVersion())));
TraceEvent("GetNewGenImpl3");
wait(self->kvStore->commit());
req.reply.send(ConfigTransactionGetGenerationReply{ generation });
TraceEvent("GetNewGenImpl4");
return Void();
}