linyiqun commented on a change in pull request #1480:
URL: https://github.com/apache/hadoop-ozone/pull/1480#discussion_r510272665



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
##########
@@ -394,6 +403,8 @@ private OzoneManager(OzoneConfiguration conf) throws 
IOException,
         OMConfigKeys.OZONE_OM_RATIS_ENABLE_KEY,
         OMConfigKeys.OZONE_OM_RATIS_ENABLE_DEFAULT);
 
+    omEpoch = OmUtils.getOMEpoch(isRatisEnabled);

Review comment:
       I prefer to reuse metadataManager#getOmEpoch to set epoch value.




----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to