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

Method ToMetaTableKeyValue

src/master/user_manager.cc:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void User::ToMetaTableKeyValue(std::string* packed_key, std::string* packed_value) {
48 MutexLock locker(&mutex_);
49 *packed_key = '~' + name_;
50 user_info_.SerializeToString(packed_value);
51}
52
53bool UserManager::AddUser(const std::string& user_name, const UserInfo& user_info) {
54 MutexLock locker(&mutex_);

Callers 2

OperateUserMethod · 0.45
PackMetaWriteRecordFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected