Skip to content

Commit

Permalink
HADOOP-16416. mark DynamoDBMetadataStore.deleteTrackingValueMap as fi…
Browse files Browse the repository at this point in the history
…nal. Contributed by kevin su.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
  • Loading branch information
pingsutw authored and ahussein committed Oct 29, 2019
1 parent dc03671 commit 1caf3e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public class DynamoDBMetadataStore implements MetadataStore,
static final String E_INCONSISTENT_UPDATE
= "Duplicate and inconsistent entry in update operation";

private static ValueMap deleteTrackingValueMap =
private static final ValueMap DELETE_TRACKING_VALUE_MAP =
new ValueMap().withBoolean(":false", false);

/**
Expand Down Expand Up @@ -723,7 +723,7 @@ private DDBPathMetadata innerGet(Path path, boolean wantEmptyDirectoryFlag)
.withHashKey(pathToParentKeyAttribute(path))
.withConsistentRead(true)
.withFilterExpression(IS_DELETED + " = :false")
.withValueMap(deleteTrackingValueMap);
.withValueMap(DELETE_TRACKING_VALUE_MAP);
boolean hasChildren = readOp.retry("get/hasChildren",
path.toString(),
true,
Expand Down

0 comments on commit 1caf3e8

Please sign in to comment.