mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
perf: optimize activation of bundles with no inter-bundle path overlap (#7155)
Fixes: #7144 Signed-off-by: Shiqi Yang <syang482@bloomberg.net>
This commit is contained in:
@@ -628,6 +628,10 @@ func (p *Plugin) activate(ctx context.Context, name string, b *bundle.Bundle, is
|
||||
compiler = compiler.WithPathConflictsCheck(storage.NonEmpty(ctx, p.manager.Store, txn)).
|
||||
WithEnablePrintStatements(p.manager.EnablePrintStatements())
|
||||
|
||||
if b.Manifest.Roots != nil {
|
||||
compiler = compiler.WithPathConflictsCheckRoots(*b.Manifest.Roots)
|
||||
}
|
||||
|
||||
var activateErr error
|
||||
|
||||
opts := &bundle.ActivateOpts{
|
||||
|
||||
Reference in New Issue
Block a user