Skip to content

Commit

Permalink
Merge pull request #3827 from butonic/initialize-user-cache
Browse files Browse the repository at this point in the history
initialize user cache for decomposedfs
  • Loading branch information
aduffeck authored Apr 28, 2023
2 parents 0d031f3 + bc6da83 commit 4434df8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/initialize-user-cache.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: initialize user cache for decomposedfs

https://github.com/cs3org/reva/pull/3827
1 change: 1 addition & 0 deletions pkg/storage/utils/decomposedfs/decomposedfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ func New(o *options.Options, lu *lookup.Lookup, p Permissions, tp Tree, es event
chunkHandler: chunking.NewChunkHandler(filepath.Join(o.Root, "uploads")),
stream: es,
cache: cache.GetStatCache(o.StatCache.Store, o.StatCache.Nodes, o.StatCache.Database, "stat", time.Duration(o.StatCache.TTL)*time.Second, o.StatCache.Size),
UserCache: ttlcache.NewCache(),
}

if o.AsyncFileUploads {
Expand Down

0 comments on commit 4434df8

Please sign in to comment.