levy5307 commented on a change in pull request #679:
URL: https://github.com/apache/incubator-pegasus/pull/679#discussion_r555485834



##########
File path: src/server/hotspot_partition_calculator.cpp
##########
@@ -41,17 +41,24 @@ DSN_DEFINE_bool("pegasus.collector",
                 enable_detect_hotkey,
                 false,
                 "auto detect hot key in the hot paritition");
+DSN_TAG_VARIABLE(enable_detect_hotkey, FT_MUTABLE);
 
 DSN_DEFINE_int32("pegasus.collector",

Review comment:
       DSN_DEFINE_int32 -> DSN_DEFINE_uint32

##########
File path: src/server/hotspot_partition_calculator.cpp
##########
@@ -41,17 +41,24 @@ DSN_DEFINE_bool("pegasus.collector",
                 enable_detect_hotkey,
                 false,
                 "auto detect hot key in the hot paritition");
+DSN_TAG_VARIABLE(enable_detect_hotkey, FT_MUTABLE);
 
 DSN_DEFINE_int32("pegasus.collector",
                  hot_partition_threshold,
                  3,
                  "threshold of hotspot partition value, if app.stat.hotspots 
>= "
                  "FLAGS_hotpartition_threshold, this partition is a hot 
partition");
+DSN_TAG_VARIABLE(hot_partition_threshold, FT_MUTABLE);
+DSN_DEFINE_validator(hot_partition_threshold,
+                     [](int32_t threshold) -> bool { return threshold >= 0; });
 
 DSN_DEFINE_int32("pegasus.collector",

Review comment:
       DSN_DEFINE_int32 -> DSN_DEFINE_uint32
   
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to