Skip to content

Commit

Permalink
fix: 'updatetablealive' cmd run failed (4paradigm#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyu813 authored Jan 6, 2022
1 parent 244cedc commit 0c6f5cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/ns_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@ bool NsClient::UpdateTableAliveStatus(const std::string& endpoint, std::string&
request.set_endpoint(endpoint);
request.set_name(name);
request.set_is_alive(is_alive);
request.set_db(GetDb());
if (pid < UINT32_MAX) {
request.set_pid(pid);
}
Expand All @@ -597,6 +598,7 @@ bool NsClient::UpdateTTL(const std::string& name, const ::openmldb::type::TTLTyp
::openmldb::nameserver::UpdateTTLRequest request;
::openmldb::nameserver::UpdateTTLResponse response;
request.set_name(name);
request.set_db(GetDb());
::openmldb::common::TTLSt* ttl_desc = request.mutable_ttl_desc();
ttl_desc->set_ttl_type(type);
ttl_desc->set_abs_ttl(abs_ttl);
Expand Down

0 comments on commit 0c6f5cd

Please sign in to comment.