Skip to content

Commit

Permalink
recover some unnecessary opperation
Browse files Browse the repository at this point in the history
Signed-off-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
Lloyd-Pottiger committed Mar 24, 2022
1 parent 2dd8d90 commit b5578b6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dbms/src/Dictionaries/Embedded/RegionsHierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void RegionsHierarchy::reload()
if (!data_source->isModified())
return;

LOG_FMT_DEBUG(log, "Reloading regions hierarchy");
LOG_DEBUG(log, "Reloading regions hierarchy");

const size_t initial_size = 10000;
const size_t max_size = 15000000;
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Dictionaries/Embedded/RegionsNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ std::string RegionsNames::dumpSupportedLanguagesNames()
void RegionsNames::reload()
{
Poco::Logger * log = &Poco::Logger::get("RegionsNames");
LOG_FMT_DEBUG(log, "Reloading regions names");
LOG_DEBUG(log, "Reloading regions names");

RegionID max_region_id = 0;
for (size_t language_id = 0; language_id < SUPPORTED_LANGUAGES_COUNT; ++language_id)
Expand Down
4 changes: 2 additions & 2 deletions dbms/src/Flash/DiagnosticsService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ try
}
catch (const Exception & e)
{
LOG_FMT_ERROR(log, "{}", e.displayText());
LOG_ERROR(log, e.displayText());
return grpc::Status(grpc::StatusCode::INTERNAL, "internal error");
}
catch (const std::exception & e)
{
LOG_FMT_ERROR(log, "{}", e.what());
LOG_ERROR(log, e.what());
return grpc::Status(grpc::StatusCode::INTERNAL, "internal error");
}

Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Flash/Mpp/ExchangeReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ void ExchangeReceiverBase<RPCContext>::readLoop(const Request & req)
meet_error = true;
auto local_state = getState();
local_err_msg = "receiver's state is " + getReceiverStateStr(local_state) + ", exit from readLoop";
LOG_FMT_WARNING(log, "{}", local_err_msg);
LOG_FMT_WARNING(log, local_err_msg);
break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions dbms/src/Flash/Mpp/MPPTunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void MPPTunnelBase<Writer>::sendJob(bool need_lock)
err_msg = "fatal error in sendJob()";
}
if (!err_msg.empty())
LOG_FMT_ERROR(log, "{}", err_msg);
LOG_FMT_ERROR(log, err_msg);
consumerFinish(err_msg, need_lock);
if (is_async)
writer->writeDone(grpc::Status::OK);
Expand Down Expand Up @@ -256,7 +256,7 @@ void MPPTunnelBase<Writer>::connect(Writer * writer_)
connected = true;
cv_for_connected_or_finished.notify_all();
}
LOG_FMT_DEBUG(log, "connected");
LOG_DEBUG(log, "connected");
}

template <typename Writer>
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Interpreters/ExternalLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void ExternalLoader::reloadFromConfigFile(const std::string & config_path, const
name = config->getString(key + "." + config_settings.external_name);
if (name.empty())
{
LOG_FMT_WARNING(log, "{}: {} name cannot be empty", config_path, key);
LOG_FMT_WARNING(log, "{}: {} name cannot be empty", config_path, config_settings.external_name);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Interpreters/SharedQueries.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SharedQueries
query.connected_clients++;
String msg = "SharedQueries: more clients than they claimed! expected " + toString(clients) + ", got "
+ toString(query.connected_clients);
LOG_FMT_WARNING(log, "{}", msg);
LOG_WARNING(log, msg);
throw Exception(msg, ErrorCodes::TIFLASH_BAD_REQUEST);
}
query.connected_clients++;
Expand Down

0 comments on commit b5578b6

Please sign in to comment.