]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Update SLURM loading logic (use a cache to load new data).
authorpcarana <pc.moreno2099@gmail.com>
Thu, 19 Mar 2020 22:55:20 +0000 (16:55 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Thu, 19 Mar 2020 22:55:20 +0000 (16:55 -0600)
commitb511b33dd9f1a2f379ee2841eeb9120dac7dab9f
tree78a5b49e63e99589b7d3b0725eb0a20b133e6d37
parent3326001c75db96155f07920d4f596c25dcd1b750
Update SLURM loading logic (use a cache to load new data).

+Stop searching for duplicate elements in the same file or in distinct files, also stop searching for covered prefixes at the same file; those checks don't exist at the RFC and they had a huge processing cost.
+Implement a SLURM cache when a new file is loaded, this way is easier to check RFC 8416 section 4.2 rule.
+Remove the whole context properties that were utilized to know on which file the loader was working.
src/slurm/db_slurm.c
src/slurm/db_slurm.h
src/slurm/slurm_loader.c
src/slurm/slurm_parser.c
src/slurm/slurm_parser.h