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

Method SetServerAddr

src/tabletnode/tabletnode_sysinfo.cc:789–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787}
788
789void TabletNodeSysInfo::SetServerAddr(const std::string& addr) {
790 MutexLock lock(&mutex_);
791 if (!info_.unique()) {
792 SwitchInfo();
793 }
794 assert(info_.unique());
795 info_->set_addr(addr);
796}
797
798void TabletNodeSysInfo::SetPersistentCacheSize(uint64_t size) {
799 MutexLock lock(&mutex_);

Callers 1

TabletNodeImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected