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

Method addRole

flow/Trace.cpp:538–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536 }
537
538 void addRole(std::string const& role) {
539 MutexHolder holder(mutex);
540
541 RoleInfo& r = mutateRoleInfo();
542 ++r.roles[role];
543 r.refreshRolesString();
544 }
545
546 void removeRole(std::string const& role) {
547 MutexHolder holder(mutex);

Callers 1

addTraceRoleFunction · 0.45

Calls 1

refreshRolesStringMethod · 0.80

Tested by

no test coverage detected