rego: Avoid re-using transactions in compiler
Any time we do a compilation in the Rego object (or helpers) we need to be careful to setup a conflict check that is valid for the current context (both literal golang ctx and current storage transaction). This isn't much of a concern if the Rego instance owns the compiler, but if an external one was provided we need to be careful to update the conflict check before compiling. This was already doing the "right thing" when activating bundles, but for partial evaluation results that were being updated on the compiler it was not. Fixes: #2197 Signed-off-by: Patrick East <east.patrick@gmail.com>
P
Patrick East committed
b39b34760e52a8db723423c89961328ff85b8612
Parent: 954196a
Committed by Torin Sandall <torinsandall@gmail.com>
on 4/6/2020, 8:54:29 PM