Skip to content

Commit

Permalink
vfs: cache key includes extraneous slashes
Browse files Browse the repository at this point in the history
path is a "string", so "/".join(path) results in "s/t/r/i/n/g".

Signed-off-by: Nathaniel Filardo <[email protected]>
  • Loading branch information
nwf committed Jun 24, 2019
1 parent 2a277ee commit ba2284f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bup/vfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def _resolve_path(repo, path, parent=None, want_meta=True, follow=True):
cache_key = b'res:%d%d%d:%s\0%s' \
% (bool(want_meta), bool(follow), repo.id(),
('/'.join(x[0] for x in parent) if parent else ''),
'/'.join(path))
path)
resolution = cache_get(cache_key)
if resolution:
return resolution
Expand Down

0 comments on commit ba2284f

Please sign in to comment.