MCPcopy Create free account
hub / github.com/bytedance/bolt / fromStateToBlockingReason

Function fromStateToBlockingReason

bolt/exec/HashProbe.cpp:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156BlockingReason fromStateToBlockingReason(ProbeOperatorState state) {
157 switch (state) {
158 case ProbeOperatorState::kRunning:
159 [[fallthrough]];
160 case ProbeOperatorState::kFinish:
161 return BlockingReason::kNotBlocked;
162 case ProbeOperatorState::kWaitForBuild:
163 return BlockingReason::kWaitForJoinBuild;
164 case ProbeOperatorState::kWaitForPeers:
165 return BlockingReason::kWaitForJoinProbe;
166 default:
167 BOLT_UNREACHABLE("Unexpected state: ", probeOperatorStateName(state));
168 }
169}
170
171// Generate partition number set from spill partition id set.
172SpillPartitionNumSet toPartitionNumSet(

Callers 1

isBlockedMethod · 0.70

Calls 1

probeOperatorStateNameFunction · 0.85

Tested by

no test coverage detected