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

Method SetServerNumber

src/observer/rowlockproxy/rowlock_proxy_impl.cc:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void RowlockProxyImpl::SetServerNumber(uint32_t number) {
81 MutexLock locker(&server_addrs_mutex_);
82
83 server_number_ = number;
84
85 if (server_addrs_->size() < number) {
86 server_addrs_->resize(number);
87 }
88}
89
90void RowlockProxyImpl::UpdateServers(uint32_t id, const std::string& addr) {
91 // update data first

Callers 6

InitMethod · 0.80
OnNodeValueChangedMethod · 0.80
OnNodeCreatedMethod · 0.80
OnNodeDeletedMethod · 0.80
OnValueChangeMethod · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64