caches: fixes the file-store backend to use serialized names for filename cache of vcsserver.
Using ones with '/' would crash the backend
This commit is contained in:
parent
127da865d6
commit
39e6e12be3
1 changed files with 3 additions and 1 deletions
|
|
@ -185,8 +185,9 @@ class RemoteRepo(object):
|
|||
self.url = remote_maker.url
|
||||
self.stream_url = remote_maker.stream_url
|
||||
self._session = remote_maker._session_factory()
|
||||
cache_repo_id = self._repo_id_sanitizer(repo_id)
|
||||
self._cache_region, self._cache_namespace = \
|
||||
remote_maker.init_cache_region(self._repo_id_sanitizer(repo_id))
|
||||
remote_maker.init_cache_region(self._repo_id_sanitizer(cache_repo_id))
|
||||
|
||||
with_wire = with_wire or {}
|
||||
|
||||
|
|
@ -194,6 +195,7 @@ class RemoteRepo(object):
|
|||
self._wire = {
|
||||
"path": path, # repo path
|
||||
"repo_id": repo_id,
|
||||
"cache_repo_id": cache_repo_id,
|
||||
"config": config,
|
||||
"repo_state_uid": repo_state_uid,
|
||||
"context": self._create_vcs_cache_context(path, repo_state_uid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue