]> dgit.raspbian.org Git - git-annex.git/commit
don't count clusters as copies
authorJoey Hess <joeyh@joeyh.name>
Sun, 16 Jun 2024 15:34:35 +0000 (11:34 -0400)
committerJoey Hess <joeyh@joeyh.name>
Sun, 16 Jun 2024 18:17:56 +0000 (14:17 -0400)
commit36c6d8da6972280618545a11c30013a52147b6ab
tree365ccb2b1321b47ace73d3ae624c9c62cc92354c
parentb3370a191c55b1eaf02361b5387bb8ea67a29766
don't count clusters as copies

Since the cluster UUID is inserted into the location log when the
location log lists a node as containing content.

Also avoid trying to lock content on cluster remotes. The cluster nodes
are also proxied, so that content can be locked on individual nodes, and
locking content on a cluster as a whole probably won't be implemented.

And made git-annex whereis use numcopies machinery for displaying its
count, so it won't count cluster UUIDs redundantly to nodes.
Other commands, like git-annex info that also display numcopies
information already used the numcopies machinery.

There is more to be done, fromNumCopies is sometimes used to get a
number that is compared with a list of UUIDs. And limitCopies doesn't
use numcopies machinery.
Annex/NumCopies.hs
Command/Whereis.hs