MCPcopy Create free account
hub / github.com/apple/foundationdb / logRelocation

Method logRelocation

fdbserver/DataDistributionQueue.actor.cpp:1075–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073 }
1074
1075 void logRelocation(const RelocateData& rd, const char* title) {
1076 std::string busyString;
1077 for (int i = 0; i < rd.src.size() && i < teamSize * 2; i++)
1078 busyString += describe(rd.src[i]) + " - (" + busymap[rd.src[i]].toString() + "); ";
1079
1080 TraceEvent(title, distributorId)
1081 .detail("KeyBegin", rd.keys.begin)
1082 .detail("KeyEnd", rd.keys.end)
1083 .detail("Priority", rd.priority)
1084 .detail("WorkFactor", rd.workFactor)
1085 .detail("SourceServerCount", rd.src.size())
1086 .detail("SourceServers", describe(rd.src, teamSize * 2))
1087 .detail("SourceBusyness", busyString);
1088 }
1089
1090 void launchQueuedWork(KeyRange keys, const DDEnabledState* ddEnabledState) {
1091 // combine all queued work in the key range and check to see if there is anything to launch

Callers

nothing calls this directly

Calls 5

TraceEventClass · 0.85
detailMethod · 0.80
describeFunction · 0.70
sizeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected