Skip to content

Commit

Permalink
remove unnecessary params
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolanmol1234 committed Feb 6, 2025
1 parent 29e2ead commit 6a491ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,23 +498,20 @@ public AbfsRestOperation createPath(final String path,
* Creates a marker at the specified path.
*
* @param path the path where the marker is to be created.
* @param isFile whether the path is a file.
* @param overwrite whether to overwrite if the path already exists.
* @param isAppendBlob whether the path is an append blob.
* @param eTag the eTag of the path.
* @param contextEncryptionAdapter the context encryption adapter.
* @param tracingContext the tracing context for the service call.
*
* @return the created AbfsRestOperation.
*
* @throws AzureBlobFileSystemException if an error occurs during the operation.
*/
protected AbfsRestOperation createMarkerAtPath(final String path,
final boolean isFile,
final boolean overwrite,
final boolean isAppendBlob,
final String eTag,
final ContextEncryptionAdapter contextEncryptionAdapter,
final TracingContext tracingContext) throws AzureBlobFileSystemException {
return createPathRestOp(path, isFile, overwrite, isAppendBlob, eTag, contextEncryptionAdapter, tracingContext);
return createPathRestOp(path, false, false, false, eTag,
contextEncryptionAdapter, tracingContext);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ private void ensurePathParentExist()
if (!path.isRoot() && !path.getParent().isRoot()) {
try {
getAbfsClient().createMarkerAtPath(path.getParent().toUri().getPath(),
false,
false,
false,
null,
null,
tracingContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ public boolean execute() throws AzureBlobFileSystemException {
&& pathInformation.getIsImplicit()) {
try {
AbfsRestOperation createMarkerOp = getAbfsClient().createMarkerAtPath(
src.toUri().getPath(),
false, false,
false, null, null, tracingContext);
src.toUri().getPath(), null, null, tracingContext);
pathInformation.setETag(
extractEtagHeader(createMarkerOp.getResult()));
} catch (AbfsRestOperationException ex) {
Expand Down

0 comments on commit 6a491ca

Please sign in to comment.