]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Refactor RRDP URIs storage, implement session ID update.
authorpcarana <pc.moreno2099@gmail.com>
Fri, 13 Dec 2019 17:50:46 +0000 (11:50 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Fri, 13 Dec 2019 17:50:46 +0000 (11:50 -0600)
commit3092d5d5c17f6b119da2c8c490dbce6b0a31da6b
treeaf0d38d64a53f40a4b3e2ae6a34f6ddec907fead
parent8889f719d834820d56b6a2c6449aae98c4182217
Refactor RRDP URIs storage, implement session ID update.

+Delete dir daemon: detach thread, renames the directory that's going to be deleted.
+Update logic (structs and relations) to remember RRDP URIs: each TAL thread will hold its own RRDP URIs, and each URI (update notification URI) will have its own visited uris struct; the main thread holds each TALs information, so that it can be accesed during every validation run. This way we know who owns what, and in case of a session ID update it's easier to remove the whole file system directory tree related to an RRDP URI.
+Rename 'visited_uris' of rsync to 'rsync_visited_uris', in validation state struct.
+Assure that update notification files are requested only once per cycle (in case they're found as the prefered access method).
+Implement session ID update, remove all files related to the previous session ID.
26 files changed:
src/Makefile.am
src/delete_dir_daemon.c
src/delete_dir_daemon.h
src/main.c
src/object/certificate.c
src/object/tal.c
src/rrdp/db/db_rrdp.c [new file with mode: 0644]
src/rrdp/db/db_rrdp.h [new file with mode: 0644]
src/rrdp/db/db_rrdp_uris.c [new file with mode: 0644]
src/rrdp/db/db_rrdp_uris.h [new file with mode: 0644]
src/rrdp/db_rrdp.c [deleted file]
src/rrdp/db_rrdp.h [deleted file]
src/rrdp/rrdp_loader.c
src/rrdp/rrdp_objects.c
src/rrdp/rrdp_objects.h
src/rrdp/rrdp_parser.c
src/rrdp/rrdp_parser.h
src/rsync/rsync.c
src/rtr/db/vrps.c
src/rtr/db/vrps.h
src/state.c
src/state.h
src/visited_uris.c
src/visited_uris.h
test/rtr/db/vrps_test.c
test/rtr/pdu_handler_test.c