dineshjoshi commented on a change in pull request #1357:
URL: https://github.com/apache/cassandra/pull/1357#discussion_r801178656



##########
File path: src/java/org/apache/cassandra/config/DatabaseDescriptor.java
##########
@@ -2606,6 +2606,21 @@ public static int getMaxHintWindow()
         return conf.max_hint_window_in_ms;
     }
 
+    public static void setMaxHintsSizePerHostInMb(int value)
+    {
+        conf.max_hints_size_per_host_in_mb = value;
+    }
+
+    public static int getMaxHintsSizePerHostInMb()
+    {
+        return conf.max_hints_size_per_host_in_mb;
+    }
+
+    public static long getMaxHintsSizePerHost()
+    {
+        return conf.max_hints_size_per_host_in_mb * 1024L * 1024L;

Review comment:
       Use `ByteUnit.MEBI_BYTES.toBytes()` instead of manual conversion?




-- 
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.

To unsubscribe, e-mail: [email protected]

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