mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
cache: add log msg to _load_chunks_from_repo
For big repos, this might take a while, so at least have messages on debug level.
This commit is contained in:
parent
6605f588cf
commit
68e64adb9f
1 changed files with 2 additions and 1 deletions
|
@ -628,6 +628,7 @@ def add_chunk(
|
||||||
return ChunkListEntry(id, size)
|
return ChunkListEntry(id, size)
|
||||||
|
|
||||||
def _load_chunks_from_repo(self):
|
def _load_chunks_from_repo(self):
|
||||||
|
logger.debug("Cache: querying the chunk IDs list from the repo...")
|
||||||
chunks = ChunkIndex()
|
chunks = ChunkIndex()
|
||||||
t0 = perf_counter()
|
t0 = perf_counter()
|
||||||
num_requests = 0
|
num_requests = 0
|
||||||
|
@ -651,7 +652,7 @@ def _load_chunks_from_repo(self):
|
||||||
del chunks[self.manifest.MANIFEST_ID]
|
del chunks[self.manifest.MANIFEST_ID]
|
||||||
duration = perf_counter() - t0 or 0.01
|
duration = perf_counter() - t0 or 0.01
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Cache: downloaded %d chunk IDs in %.2f s (%d requests), ~%s/s",
|
"Cache: queried %d chunk IDs in %.2f s (%d requests), ~%s/s",
|
||||||
num_chunks,
|
num_chunks,
|
||||||
duration,
|
duration,
|
||||||
num_requests,
|
num_requests,
|
||||||
|
|
Loading…
Reference in a new issue