mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-25 23:43:49 +00:00
cache.py: minor updates to output
This commit is contained in:
parent
7dad4a6992
commit
6f7bc89627
1 changed files with 8 additions and 8 deletions
|
@ -837,7 +837,7 @@ def get_archive_ids_to_names(archive_ids):
|
|||
return archive_names
|
||||
|
||||
def create_master_idx(chunk_idx):
|
||||
logger.debug("Synchronizing chunks cache...")
|
||||
logger.debug("Synchronizing chunks index...")
|
||||
cached_ids = cached_archives()
|
||||
archive_ids = repo_archives()
|
||||
logger.info(
|
||||
|
@ -857,7 +857,7 @@ def create_master_idx(chunk_idx):
|
|||
pi = ProgressIndicatorPercent(
|
||||
total=len(archive_ids),
|
||||
step=0.1,
|
||||
msg="%3.0f%% Syncing chunks cache. Processing archive %s",
|
||||
msg="%3.0f%% Syncing chunks index. Processing archive %s.",
|
||||
msgid="cache.sync",
|
||||
)
|
||||
archive_ids_to_names = get_archive_ids_to_names(archive_ids)
|
||||
|
@ -871,26 +871,26 @@ def create_master_idx(chunk_idx):
|
|||
if archive_id not in cached_ids:
|
||||
# Do not make this an else branch; the FileIntegrityError exception handler
|
||||
# above can remove *archive_id* from *cached_ids*.
|
||||
logger.info("Fetching and building archive index for %s", archive_name)
|
||||
logger.info("Fetching and building archive index for %s.", archive_name)
|
||||
archive_chunk_idx = ChunkIndex()
|
||||
fetch_and_build_idx(archive_id, decrypted_repository, archive_chunk_idx)
|
||||
logger.debug("Merging into master chunks index")
|
||||
logger.debug("Merging into master chunks index.")
|
||||
chunk_idx.merge(archive_chunk_idx)
|
||||
else:
|
||||
chunk_idx = chunk_idx or ChunkIndex(usable=master_index_capacity)
|
||||
logger.info("Fetching archive index for %s", archive_name)
|
||||
logger.info("Fetching archive index for %s.", archive_name)
|
||||
fetch_and_build_idx(archive_id, decrypted_repository, chunk_idx)
|
||||
pi.finish()
|
||||
logger.debug(
|
||||
"Cache sync: processed %s (%d chunks) of metadata",
|
||||
"Cache index sync: processed %s (%d chunks) of metadata.",
|
||||
format_file_size(processed_item_metadata_bytes),
|
||||
processed_item_metadata_chunks,
|
||||
)
|
||||
logger.debug(
|
||||
"Cache sync: compact chunks.archive.d storage saved %s bytes",
|
||||
"Cache index sync: compact chunks.archive.d storage saved %s bytes.",
|
||||
format_file_size(compact_chunks_archive_saved_space),
|
||||
)
|
||||
logger.debug("Cache sync done.")
|
||||
logger.debug("Cache index sync done.")
|
||||
return chunk_idx
|
||||
|
||||
# The cache can be used by a command that e.g. only checks against Manifest.Operation.WRITE,
|
||||
|
|
Loading…
Reference in a new issue