Skip to content

Commit 2af69ec

Browse files
committed
feat: Normalize the output format of 'balance_operation_count'
1 parent d00b251 commit 2af69ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/meta/greedy_load_balancer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ std::string greedy_load_balancer::get_balance_operation_count(const std::vector<
104104
} else {
105105
info["error"] = fmt::format("invalid arguments");
106106
}
107-
return info.dump(2);
107+
return info.dump();
108108
}
109109

110110
void greedy_load_balancer::score(meta_view view, double &primary_stddev, double &total_stddev)

src/meta/meta_service.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ void meta_service::on_query_cluster_info(configuration_cluster_info_rpc rpc)
736736
_meta_function_level_VALUES_TO_NAMES.find(get_function_level())->second + 3);
737737
response.keys.push_back("balance_operation_count");
738738
std::vector<std::string> balance_operation_type;
739-
balance_operation_type.emplace_back(std::string("detail"));
739+
balance_operation_type.emplace_back("detail");
740740
response.values.push_back(_balancer->get_balance_operation_count(balance_operation_type));
741741
double primary_stddev, total_stddev;
742742
_state->get_cluster_balance_score(primary_stddev, total_stddev);

0 commit comments

Comments
 (0)