MCPcopy Create free account
hub / github.com/alibaba/tair / FlowStatusStr

Function FlowStatusStr

src/dataserver/flow_controller_impl.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37inline
38const char *FlowStatusStr(FlowStatus status) {
39 switch (status) {
40 case UP:
41 return "UP";
42 case DOWN:
43 return "DOWN";
44 case KEEP:
45 return "KEEP";
46 }
47 return "UNKONW";
48}
49
50int FlowControllerImpl::default_net_upper = 30 * 1024 * 1024; // 30MB/s
51int FlowControllerImpl::default_net_lower = 15 * 1024 * 1024; // 15MB/s

Callers 2

BackgroundCalFlowsMethod · 0.70
AddUpMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected