From 0c67dbf5180b6ffbad1b30c191c14b0469352b8c Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Wed, 29 Nov 2023 14:36:06 +0100 Subject: [PATCH] Add changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: André Duffeck Signed-off-by: Christian Richter --- changelog/unreleased/concurrent-trashbin.md | 7 +++++++ pkg/storage/utils/decomposedfs/recycle.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/concurrent-trashbin.md diff --git a/changelog/unreleased/concurrent-trashbin.md b/changelog/unreleased/concurrent-trashbin.md new file mode 100644 index 0000000000..fda24531e5 --- /dev/null +++ b/changelog/unreleased/concurrent-trashbin.md @@ -0,0 +1,7 @@ +Enhancement: Handle trashbin file listings concurrently + +We now use a concurrent walker to list files in the trashbin. This +improves performance when listing files in the trashbin. + +https://github.com/cs3org/reva/pull/4374 +https://github.com/owncloud/ocis/issues/7844 \ No newline at end of file diff --git a/pkg/storage/utils/decomposedfs/recycle.go b/pkg/storage/utils/decomposedfs/recycle.go index 517914eeca..77ceb91cb3 100644 --- a/pkg/storage/utils/decomposedfs/recycle.go +++ b/pkg/storage/utils/decomposedfs/recycle.go @@ -20,7 +20,6 @@ package decomposedfs import ( "context" - "golang.org/x/sync/errgroup" iofs "io/fs" "os" "path/filepath" @@ -37,6 +36,7 @@ import ( "github.com/cs3org/reva/v2/pkg/storage/utils/decomposedfs/node" "github.com/cs3org/reva/v2/pkg/storagespace" "github.com/pkg/errors" + "golang.org/x/sync/errgroup" ) // Recycle items are stored inside the node folder and start with the uuid of the deleted node.