| 8054 | } |
| 8055 | |
| 8056 | void NameServerImpl::NotifyTableChanged() { |
| 8057 | bool ok = zk_client_->Increment(zk_table_changed_notify_node_); |
| 8058 | if (!ok) { |
| 8059 | PDLOG(WARNING, "increment failed. node is %s", zk_table_changed_notify_node_.c_str()); |
| 8060 | return; |
| 8061 | } |
| 8062 | PDLOG(INFO, "notify table changed ok"); |
| 8063 | } |
| 8064 | |
| 8065 | bool NameServerImpl::GetTableInfo(const std::string& table_name, const std::string& db_name, |
| 8066 | std::shared_ptr<TableInfo>* table_info) { |