Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 3, 2024
1 parent 5653cfd commit f48c53c
Showing 1 changed file with 3 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4208,13 +4208,8 @@ public Future<String> convert(RestRequest restRequest, String input, BlobInfo bl
if (passThrough) {
return ambryIdConverter.convert(restRequest, input, blobInfo, callback);
}
if (restRequest.getRestMethod() == RestMethod.PUT && RestUtils.getRequestPath(restRequest).matchesOperation(Operations.NAMED_BLOB)) {
/*try {
namedBlobDb.put(new NamedBlobRecord(RestUtils.getAccountFromArgs(restRequest.getArgs()).getName(),
RestUtils.getContainerFromArgs(restRequest.getArgs()).getName(), restRequest.getUri(), input, Utils.Infinite_Time, 0));
} catch (Exception ex) {
exceptionToThrow = new RuntimeException(ex);
}*/
if (restRequest.getRestMethod() == RestMethod.PUT &&
RestUtils.getRequestPath(restRequest).matchesOperation(Operations.NAMED_BLOB)) {
restRequest.setArg(RestUtils.InternalKeys.NAMED_BLOB_VERSION, -1L);
}
return completeOperation(input, blobInfo, callback);
Expand All @@ -4228,23 +4223,7 @@ public Future<Boolean> detectConflict(RestRequest restRequest, Callback<Boolean>
if (passThrough) {
return ambryIdConverter.detectConflict(restRequest, callback);
}
/* try {
if (restRequest.getRestMethod() == RestMethod.PUT && RestUtils.getRequestPath(restRequest)
.matchesOperation(Operations.NAMED_BLOB) && !RestUtils.isUpsertForNamedBlob(restRequest.getArgs())) {
if (enableConflictDetection) {
namedBlobDb.get(RestUtils.getAccountFromArgs(restRequest.getArgs()).getName(),
RestUtils.getContainerFromArgs(restRequest.getArgs()).getName(), restRequest.getUri());
return completeOperation(true, callback);
} else {
return completeOperation(false, callback);
}
}
} catch (Exception e) {
if (exceptionToReturn == null) {
exceptionToReturn = e;
}
}*/
return completeOperation(false, null, null);
return completeOperation(false, callback);
}

@Override
Expand Down

0 comments on commit f48c53c

Please sign in to comment.