-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indexer: filter scanners during manifest check
This commit adds a filtering step in the CheckManifest state. Now, if a manifest reports being analyzed by a particular scanner that scanner will be omitted from all subsequent states. This is safe to do, if a manifest was analyzed by a particular scanner, this also means all it's layers were analyzed by the particular scanner. Thus, the scanner need not be included in the rest of the indexing process. This fixes a unique constraint issue in the IndexFinished state. Previous to this commit, an attempt to persist duplicate scanner ids was made in the aforementioned state. Signed-off-by: ldelossa <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters