Skip to content

Commit

Permalink
[irods#189] Avoid unnecessary stat during list operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Oct 24, 2023
1 parent 7c05b59 commit 080978c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1021,10 +1021,7 @@ public DirectoryStream list(Inode _inode, byte[] _verifier, long _cookie) throws

if (null == inodeNumber)
{
CollectionAndDataObjectListAndSearchAO lao = factory_.getCollectionAndDataObjectListAndSearchAO(adminAcct_);
ObjStat objStat = lao.retrieveObjectStatForPath(path.toAbsolutePath().toString());
inodeNumber = (long) objStat.getDataId();
inodeToPathMapper_.map(inodeNumber, path);
inodeToPathMapper_.map((long) e.getId(), path);
}

Stat stat = statPath(path, inodeNumber, e, groupsContainingUser);
Expand Down

0 comments on commit 080978c

Please sign in to comment.