Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ public static OMPathInfoWithFSO verifyDirectoryKeysInPath(
* the directory search result code.
*/
public static class OMPathInfoWithFSO extends OMPathInfo {
private String leafNodeName;
private final String leafNodeName;
private final String fileExistsInPath;
private long lastKnownParentId;
private long leafNodeObjectId;
private String fileExistsInPath;

public OMPathInfoWithFSO(String leafNodeName, long lastKnownParentId,
List missingParents, OMDirectoryResult result,
Expand Down Expand Up @@ -335,9 +335,9 @@ public String getFileExistsInPath() {
* the directory search result code.
*/
public static class OMPathInfo {
private OMDirectoryResult directoryResult;
private List<String> missingParents;
private List<OzoneAcl> acls;
private final OMDirectoryResult directoryResult;
private final List<String> missingParents;
private final List<OzoneAcl> acls;

public OMPathInfo(List missingParents, OMDirectoryResult result,
List<OzoneAcl> aclList) {
Expand All @@ -346,7 +346,7 @@ public OMPathInfo(List missingParents, OMDirectoryResult result,
this.acls = aclList;
}

public List getMissingParents() {
public List<String> getMissingParents() {
return missingParents;
}

Expand Down Expand Up @@ -567,7 +567,8 @@ public static void addToOpenFileTable(OMMetadataManager omMetadataMgr,
* @return multipartFileKey
* @throws IOException DB failure
*/
public static String addToOpenFileTable(OMMetadataManager omMetadataMgr,
public static String addToOpenFileTableForMultipart(
OMMetadataManager omMetadataMgr,
BatchOperation batchOp, OmKeyInfo omFileInfo, String uploadID,
long volumeId, long bucketId) throws IOException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public void addToDBBatch(OMMetadataManager omMetadataManager,
bucketKey, omBucketInfo);
}

OMFileRequest.addToOpenFileTable(omMetadataManager, batchOperation,
OMFileRequest.addToOpenFileTableForMultipart(omMetadataManager,
batchOperation,
getOmKeyInfo(), getOmMultipartKeyInfo().getUploadID(), volumeId,
bucketId);

Expand Down