Class OmKeyHSyncUtil
java.lang.Object
org.apache.hadoop.ozone.om.request.util.OmKeyHSyncUtil
Helper methods related to OM key HSync.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHSyncedPreviously(org.apache.hadoop.ozone.om.helpers.OmKeyInfo omKeyInfo, String clientIdString, String dbOpenKey) Returns true if the key has been hsync'ed before (has metadata HSYNC_CLIENT_ID).
-
Method Details
-
isHSyncedPreviously
public static boolean isHSyncedPreviously(org.apache.hadoop.ozone.om.helpers.OmKeyInfo omKeyInfo, String clientIdString, String dbOpenKey) Returns true if the key has been hsync'ed before (has metadata HSYNC_CLIENT_ID).- Parameters:
omKeyInfo- OmKeyInfoclientIdString- Client ID StringdbOpenKey- dbOpenKey
-