]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Refactor] composites: parameterise build helpers by generation
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 26 May 2026 19:02:01 +0000 (20:02 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 26 May 2026 19:02:01 +0000 (20:02 +0100)
commit9083d69d6828ea8f49efea383926d440e603d835
treeeb90e2ab1e07ed9a9d43975ca5668b35fd3bcb41
parent391d994ce731f8e375e46d480d39e51cf188d294
[Refactor] composites: parameterise build helpers by generation

process_dependencies, build_inverted_index, mark_whitelist_dependencies,
collect_leaf_atoms, the composite-dep cbdata and the inverted-index
cbdata all take an explicit composites_generation reference now and
operate solely on it, with no implicit access to manager state.

The manager keeps a no-arg overload of each that forwards to
*current_gen — config-load wiring is unchanged.

This unblocks building a staging generation (under a dynamic-map
reload) without touching the live one. No behaviour change for static
configurations.
src/libserver/composites/composites_internal.hxx
src/libserver/composites/composites_manager.cxx