]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Do not apply "rsync by module" hack to TA rsyncs
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 3 Nov 2025 22:20:20 +0000 (16:20 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Mon, 3 Nov 2025 22:20:20 +0000 (16:20 -0600)
commit72a21465362a5d760b52b81368af45188faeb750
treeca0133b66f4cd5a7b423c8119dc26df579d23e16
parent0c97343d0983906e5bc48f2f6aa0231fb4cc8228
Do not apply "rsync by module" hack to TA rsyncs

Let:

- A = The TA and RPP share rsync modules
- B = RRDP is available

If the "rsync by module" hack is applied to TAs and Fort downloads the
TA by rsync,

- If A and B, Fort performs 1 big rsync and 1 big RRDP update
- If A and !B, Fort performs 1 big rsync
- If !A and B, Fort performs 1 single-file rsync and 1 big RRDP update
- If !A and !B, Fort performs 1 single-file rsync and 1 big rsync

If the "rsync by module" hack is not applied to TAs and Fort downloads
the TA by rsync,

- If A and B, Fort performs 1 single-file rsync and 1 big RRDP update
- If A and !B, Fort performs 1 single-file rsync and 1 big rsync
- If !A and B, Fort performs 1 single-file rsync and 1 big RRDP update
- If !A and !B, Fort performs 1 single-file rsync and 1 big rsync

So not applying the hack on TAs is more cache-efficient.
src/cache.c
src/cache.h
src/object/tal.c
src/types/uri.c
src/types/uri.h