From: Konrad Rudolph Date: Thu, 30 Mar 2023 16:33:15 +0000 (+0200) Subject: Fix collection tree caching bug X-Git-Tag: 2.6.0~5^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/e0c3829f04a3f72410dafd17e14dd07331111fe3 Fix collection tree caching bug Before this fix, accessing two files inside the same collection in succession via `collection$get` will fail on the second file because the private tree inside the `collection` is only populated with the relative path of the first file. Arvados-DCO-1.1-Signed-off-by: Konrad Rudolph --- diff --git a/sdk/R/R/Collection.R b/sdk/R/R/Collection.R index 655bf98b3d..14ab0e6f26 100644 --- a/sdk/R/R/Collection.R +++ b/sdk/R/R/Collection.R @@ -391,7 +391,7 @@ Collection <- R6::R6Class( get = function(relativePath) { if(is.null(private$tree)) - private$generateCollectionTreeStructure(relativePath) + private$generateCollectionTreeStructure() private$tree$getElement(relativePath) },