Skip to content

Commit

Permalink
delete file metadata from correct database and table (#3943)
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic authored Jun 6, 2023
1 parent ce240aa commit a62849e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/unreleased/delete-correct-cache-entry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Bugfix: when removing metadata always use correct database and table

https://github.com/cs3org/reva/pull/3943

2 changes: 1 addition & 1 deletion pkg/storage/cache/filemetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ func NewFileMetadataCache(store string, nodes []string, database, table string,

// RemoveMetadata removes a reference from the metadata cache
func (c *fileMetadataCache) RemoveMetadata(path string) error {
return c.s.Delete(path)
return c.Delete(path)
}

0 comments on commit a62849e

Please sign in to comment.