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

Function getRoleStr

fdbserver/RestoreUtil.actor.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61#endif
62
63std::string getRoleStr(RestoreRole role) {
64 if ((int)role >= numRoles || (int)role < 0) {
65 printf("[ERROR] role:%d is out of scope\n", (int)role);
66 return "[Unset]";
67 }
68 return RestoreRoleStr[(int)role];
69}
70
71bool isRangeMutation(MutationRef m) {
72 if (m.type == MutationRef::Type::ClearRange) {

Callers 6

toStringMethod · 0.85
toStringMethod · 0.85
printableMethod · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected