mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 22:22:27 +00:00
do not load files cache for commands not using it, fixes #5673
This commit is contained in:
parent
318b0446b5
commit
02a9db50d2
2 changed files with 2 additions and 5 deletions
|
@ -83,8 +83,8 @@
|
|||
CH_DATA, CH_ALLOC, CH_HOLE = 0, 1, 2
|
||||
|
||||
# operating mode of the files cache (for fast skipping of unchanged files)
|
||||
DEFAULT_FILES_CACHE_MODE_UI = 'ctime,size,inode'
|
||||
DEFAULT_FILES_CACHE_MODE = 'cis' # == CacheMode(DEFAULT_FILES_CACHE_MODE_UI)
|
||||
DEFAULT_FILES_CACHE_MODE_UI = 'ctime,size,inode' # default for "borg create" command (CLI UI)
|
||||
DEFAULT_FILES_CACHE_MODE = 'd' # most borg commands do not use the files cache at all (disable)
|
||||
|
||||
# return codes returned by borg command
|
||||
# when borg is killed by signal N, rc = 128 + N
|
||||
|
|
|
@ -141,9 +141,6 @@ def FilesCacheMode(s):
|
|||
return mode
|
||||
|
||||
|
||||
assert FilesCacheMode(DEFAULT_FILES_CACHE_MODE_UI) == DEFAULT_FILES_CACHE_MODE # keep these 2 values in sync!
|
||||
|
||||
|
||||
def partial_format(format, mapping):
|
||||
"""
|
||||
Apply format.format_map(mapping) while preserving unknown keys
|
||||
|
|
Loading…
Reference in a new issue