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

Method ReloadConfig

src/master/master_impl.cc:1356–1364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1354}
1355
1356void MasterImpl::ReloadConfig(CmdCtrlResponse *response) {
1357 if (utils::LoadFlagFile(FLAGS_flagfile)) {
1358 LOG(INFO) << "[reload config] done";
1359 response->set_status(kMasterOk);
1360 } else {
1361 LOG(ERROR) << "[reload config] config file not found";
1362 response->set_status(kInvalidArgument);
1363 }
1364}
1365
1366void MasterImpl::TableCmdCtrl(const CmdCtrlRequest *request, CmdCtrlResponse *response) {
1367 if (request->arg_list_size() < 2) {

Callers

nothing calls this directly

Calls 1

LoadFlagFileFunction · 0.85

Tested by

no test coverage detected