Skip to content

Commit

Permalink
Merge pull request #3818 from butonic/invalidate-cache-when-deleting-…
Browse files Browse the repository at this point in the history
…space

invalidate cache when deleting space
  • Loading branch information
aduffeck authored Apr 26, 2023
2 parents d869e0a + 4291525 commit da40d4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/invalidate-cache-when-deleting-space.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Invalidate cache when deleting space

Decomposedfs now invalidates the cache when deleting a space.

https://github.com/cs3org/reva/pull/3818
8 changes: 6 additions & 2 deletions pkg/storage/utils/decomposedfs/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,12 @@ func (fs *Decomposedfs) DeleteStorageSpace(ctx context.Context, req *provider.De
return err
}

// FIXME remove space blobs
// FIXME invalidate cache
// invalidate cache
if err := fs.lu.MetadataBackend().Purge(n.InternalPath()); err != nil {
return err
}

// TODO remove space blobs with s3 backend by adding a purge method to the Blobstore interface

return nil
}
Expand Down

0 comments on commit da40d4b

Please sign in to comment.