Remove unnecessary debugging trace events
This commit is contained in:
parent
7f8a1385d5
commit
28f3481656
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue