Skip to content

Commit

Permalink
read locks on folders
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Jan 28, 2022
1 parent caf6102 commit 0af5690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ func (n *Node) AsResourceInfo(ctx context.Context, rp *provider.ResourcePermissi
metadata[FavoriteKey] = favorite
}
// read locks
if _, ok := mdKeysMap[LockdiscoveryKey]; (nodeType == provider.ResourceType_RESOURCE_TYPE_FILE) && (returnAllKeys || ok) {
if _, ok := mdKeysMap[LockdiscoveryKey]; returnAllKeys || ok {
if n.hasLocks(ctx) {
readLocksIntoOpaque(ctx, nodePath+".lock", ri)
}
Expand Down

0 comments on commit 0af5690

Please sign in to comment.