MCPcopy Create free account
hub / github.com/baidu/tera / DebugString

Method DebugString

src/master/user_manager.cc:16–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 : name_(name), user_info_(user_info) {}
15
16std::string User::DebugString() {
17 MutexLock locker(&mutex_);
18 std::stringstream ss;
19 ss << "user:" << name_ << ", token:" << user_info_.token() << ", group("
20 << user_info_.group_name_size() << "):";
21 for (int i = 0; i < user_info_.group_name_size(); ++i) {
22 ss << user_info_.group_name(i) << " ";
23 }
24 return ss.str();
25}
26
27std::string User::GetUserName() {
28 MutexLock locker(&mutex_);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected