This is an automated email from the ASF dual-hosted git repository.
wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push:
new ef0b38c2 Bugfix: MultiDimension::set_max_stats_count should be public
(#3074)
ef0b38c2 is described below
commit ef0b38c2604a80f22872f5b1cf30ff1935f17f38
Author: Bright Chen <[email protected]>
AuthorDate: Tue Aug 26 13:48:37 2025 +0800
Bugfix: MultiDimension::set_max_stats_count should be public (#3074)
---
src/bvar/multi_dimension.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bvar/multi_dimension.h b/src/bvar/multi_dimension.h
index 8eb55dc7..9163e346 100644
--- a/src/bvar/multi_dimension.h
+++ b/src/bvar/multi_dimension.h
@@ -123,6 +123,10 @@ public:
// Put name of all stats label into `names'
void list_stats(std::vector<key_type>* names);
+
+ void set_max_stats_count(size_t max_stats_count) {
+ _max_stats_count = std::max(max_stats_count, max_stats_count);
+ }
#ifdef UNIT_TEST
// Get real bvar pointer object
@@ -186,10 +190,6 @@ private:
// Remove all stats so those not count and dump
void delete_stats();
-
- void set_max_stats_count(size_t max_stats_count) {
- _max_stats_count = max_stats_count;
- }
static size_t init_flatmap(MetricMap& bg);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]