MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / HandleNSClientConfSet

Function HandleNSClientConfSet

src/cmd/fedb.cc:928–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928void HandleNSClientConfSet(const std::vector<std::string>& parts,
929 ::fedb::client::NsClient* client) {
930 if (parts.size() < 3) {
931 std::cout << "Bad format" << std::endl;
932 return;
933 }
934 std::string msg;
935 bool ret = client->ConfSet(parts[1], parts[2], msg);
936 if (!ret) {
937 printf("failed to set %s. error msg: %s\n", parts[1].c_str(),
938 msg.c_str());
939 return;
940 }
941 printf("set %s ok\n", parts[1].c_str());
942}
943
944void HandleNSClientConfGet(const std::vector<std::string>& parts,
945 ::fedb::client::NsClient* client) {

Callers 1

StartNsClientFunction · 0.85

Calls 2

sizeMethod · 0.45
ConfSetMethod · 0.45

Tested by

no test coverage detected