Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Nov 20, 2023
1 parent 370dd69 commit 88e9e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/server/hotspot_partition_calculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void hotspot_partition_calculator::init_perf_counter(int partition_count)
{
for (int data_type = 0; data_type <= 1; data_type++) {
for (int i = 0; i < partition_count; i++) {
string partition_desc =
std::string partition_desc =
_app_name + '.' +
(data_type == partition_qps_type::WRITE_HOTSPOT_DATA ? "write." : "read.") +
std::to_string(i);
Expand All @@ -95,7 +95,7 @@ void hotspot_partition_calculator::init_perf_counter(int partition_count)
"app.pegasus", counter_name.c_str(), COUNTER_TYPE_NUMBER, counter_desc.c_str());
}

string total_desc =
std::string total_desc =
_app_name + '.' +
(data_type == partition_qps_type::WRITE_HOTSPOT_DATA ? "write.total" : "read.total");
std::string counter_name = fmt::format("app.stat.hotspots.{}", total_desc);
Expand Down
2 changes: 1 addition & 1 deletion src/server/info_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class info_collector
::dsn::task_ptr _storage_size_stat_timer_task;
::dsn::utils::ex_lock_nr _capacity_unit_update_info_lock;
// mapping 'node address' --> 'last updated timestamp'
std::map<std::string, string> _capacity_unit_update_info;
std::map<std::string, std::string> _capacity_unit_update_info;
// _hotspot_calculator_store is to save hotspot_partition_calculator for each table, a
// hotspot_partition_calculator saves historical hotspot data and alert perf_counters of
// corresponding table
Expand Down

0 comments on commit 88e9e0f

Please sign in to comment.