codings-dan commented on code in PR #688:
URL: https://github.com/apache/ratis/pull/688#discussion_r926249870


##########
ratis-server-api/src/main/java/org/apache/ratis/server/RaftServerConfigKeys.java:
##########
@@ -285,6 +285,15 @@ static void setPurgeUptoSnapshotIndex(RaftProperties 
properties, boolean shouldP
       setBoolean(properties::setBoolean, PURGE_UPTO_SNAPSHOT_INDEX_KEY, 
shouldPurgeUptoSnapshotIndex);
     }
 
+    String PURGE_PRESERVE_LOG_NUM_KEY = PREFIX + "purge.preserve.log.num";
+    long PURGE_PRESERVE_LOG_NUM_DEFAULT = 0L;
+    static long purgePreserveLogNum(RaftProperties properties) {
+      return getLong(properties::getLong, PURGE_PRESERVE_LOG_NUM_KEY, 
PURGE_PRESERVE_LOG_NUM_DEFAULT, getDefaultLog());
+    }
+    static void setPurgePreserveLogNum(RaftProperties properties, int 
purgePreserveLogNum) {
+      setInt(properties::setInt, PURGE_PRESERVE_LOG_NUM_KEY, 
purgePreserveLogNum);

Review Comment:
   We keep set and get unified, setInt -> setLong



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

Reply via email to