Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Smityz committed Sep 10, 2020
1 parent b404561 commit 7831a7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/hotspot_partition_calculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void hotspot_partition_calculator::data_aggregate(const std::vector<row_data> &p
_partition_stat_histories.pop_front();
}
std::vector<hotspot_partition_data> temp;
for (const auto &partition_stat:partition_stats) {
for (const auto &partition_stat : partition_stats) {
temp.emplace_back(hotspot_partition_data(partition_stat));
}
_partition_stat_histories.emplace_back(temp);
Expand Down
4 changes: 2 additions & 2 deletions src/server/hotspot_partition_calculator.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace pegasus {
namespace server {

typedef std::list<std::vector<hotspot_partition_data>> partition_data_list;
typedef std::list<std::vector<hotspot_partition_data>> statistical_histories;
typedef std::vector<std::vector<std::unique_ptr<dsn::perf_counter_wrapper>>> hot_partition_counters;

// hotspot_partition_calculator is used to find the hot partition in a table.
Expand All @@ -48,7 +48,7 @@ class hotspot_partition_calculator
// usually a partition with "hot-point value" >= 3 can be considered as a hotspot partition.
hot_partition_counters _hot_points;
// saving historical data can improve accuracy
partition_data_list _partition_stat_histories;
statistical_histories _partition_stat_histories;

FRIEND_TEST(hotspot_partition_calculator, hotspot_partition_policy);
};
Expand Down

0 comments on commit 7831a7e

Please sign in to comment.