]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Minor] Do not fetch a hyperscan database that is already installed 6161/head
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Thu, 30 Jul 2026 14:58:49 +0000 (16:58 +0200)
committerDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>
Thu, 30 Jul 2026 16:02:01 +0000 (18:02 +0200)
commitf53930d0338cfaaf55fc4caa1679b69bda3803bc
treed155e6fb1c3c2c8cb1c5b864e9d6691cfaf46658
parente5d01170e2d67de6889bf3268f744983dbb7435b
[Minor] Do not fetch a hyperscan database that is already installed

A map is put in the compilation queue by its read callback and announced by a
notification once the database is there, and both paths load it, so every map
update cost twice the traffic: megabytes for a map of a few thousand patterns.

Skip the load when the helper already has a database. That cannot keep a stale
one: every read allocates a helper of its own with no database at all, its
patterns never change afterwards, and a database only ever gets installed for
the content of that very helper, the load verifying the digest before it does
so.
src/libserver/maps/map_helpers.c