Skip to content

Commit

Permalink
HDDS-11407. Use OMLayoutFeature.HBASE_SUPPORT for HSYNC (apache#7152)
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantk-12 authored Sep 4, 2024
1 parent 966b8d0 commit 111b9df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ public static OMRequest blockCommitKeyWithBucketLayoutFromOldClient(
public static OMRequest disallowHsync(
OMRequest req, ValidationContext ctx) throws OMException {
if (!ctx.versionManager()
.isAllowed(OMLayoutFeature.HSYNC)) {
.isAllowed(OMLayoutFeature.HBASE_SUPPORT)) {
CommitKeyRequest commitKeyRequest = req.getCommitKeyRequest();
boolean isHSync = commitKeyRequest.hasHsync() &&
commitKeyRequest.getHsync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public enum OMLayoutFeature implements LayoutFeature {

MULTITENANCY_SCHEMA(3, "Multi-Tenancy Schema"),

@Deprecated
HSYNC(4, "Support hsync"),

FILESYSTEM_SNAPSHOT(5, "Ozone version supporting snapshot"),
Expand Down

0 comments on commit 111b9df

Please sign in to comment.