mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-11 06:33:39 +00:00
fuse: hot-spot micro-opt for versions view
this way it does not create/discard tons of lists
This commit is contained in:
parent
cccee36a60
commit
392bc3e3b1
1 changed files with 1 additions and 2 deletions
|
@ -362,8 +362,7 @@ class FuseBackend(object):
|
||||||
file_id = blake2b_128(path)
|
file_id = blake2b_128(path)
|
||||||
current_version, previous_id = self.versions_index.get(file_id, (0, None))
|
current_version, previous_id = self.versions_index.get(file_id, (0, None))
|
||||||
|
|
||||||
chunk_ids = [chunk_id for chunk_id, _, _ in item.chunks]
|
contents_id = blake2b_128(b''.join(chunk_id for chunk_id, _, _ in item.chunks))
|
||||||
contents_id = blake2b_128(b''.join(chunk_ids))
|
|
||||||
|
|
||||||
if contents_id != previous_id:
|
if contents_id != previous_id:
|
||||||
current_version += 1
|
current_version += 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue