Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage+bundle: Clean old bundle data before new activation (#4944)
If OPA has an activated bundle that owns all roots and a new bundle with empty roots is to be activated, the old bundle's data should first be erased from the store. Currently both the old and new data is kept in the store. This commit attempts to fix this by providing an indication to the truncate call about the scenario in which the root is to be overwritten. Fixes: #4940 Signed-off-by: Ashutosh Narkar <[email protected]>
- Loading branch information