From 87ebd756beac84e19b1eb7b3d271cf3fe38400c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 20 Jan 2022 11:12:05 +0000 Subject: [PATCH] decomposedfs: do not swallow errors when creating nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- changelog/unreleased/do-not-swallow-error.md | 5 +++++ pkg/storage/utils/decomposedfs/tree/tree.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/do-not-swallow-error.md diff --git a/changelog/unreleased/do-not-swallow-error.md b/changelog/unreleased/do-not-swallow-error.md new file mode 100644 index 0000000000..f8c094847b --- /dev/null +++ b/changelog/unreleased/do-not-swallow-error.md @@ -0,0 +1,5 @@ +Bugfix: do not swallow error + +decomposedfs not longer swallows errors when creating a node fails. + +https://github.com/cs3org/reva/pull/2457 \ No newline at end of file diff --git a/pkg/storage/utils/decomposedfs/tree/tree.go b/pkg/storage/utils/decomposedfs/tree/tree.go index 4a2669c593..5bb0f8f009 100644 --- a/pkg/storage/utils/decomposedfs/tree/tree.go +++ b/pkg/storage/utils/decomposedfs/tree/tree.go @@ -259,7 +259,7 @@ func (t *Tree) CreateDir(ctx context.Context, n *node.Node) (err error) { err = t.createNode(n, owner) if err != nil { - return nil + return } // make child appear in listings