Skip to content

Commit

Permalink
Fix IsMetaFile() for .mlock files (#4042)
Browse files Browse the repository at this point in the history
* Fix IsMetaFile() for .mlock files

* Add changelog
  • Loading branch information
aduffeck authored Jul 6, 2023
1 parent 3626d94 commit 5009aa4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/unreleased/fix-0-byte-msgpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ Bugfix: fix writing 0 byte msgpack metadata

File metadata is now written atomically to be more resilient during timeouts

https://github.com/cs3org/reva/pull/4042
https://github.com/cs3org/reva/pull/4034
https://github.com/cs3org/reva/pull/4033
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (b MessagePackBackend) loadAttributes(ctx context.Context, path string, sou

// IsMetaFile returns whether the given path represents a meta file
func (MessagePackBackend) IsMetaFile(path string) bool {
return strings.HasSuffix(path, ".mpk") || strings.HasSuffix(path, ".mpk.lock")
return strings.HasSuffix(path, ".mpk") || strings.HasSuffix(path, ".mlock")
}

// Purge purges the data of a given path
Expand Down

0 comments on commit 5009aa4

Please sign in to comment.