-
-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
admin: use SA to get metadata before blocking key (#7377)
Use two existing SA methods, KeyBlocked and GetSerialsByKey, to replace the direct database access previously used by the blockSPKIHash method. This is less efficient than before -- it now streams the whole set of affected serials rather than just counting them -- but doing so prevents us from needing an additional SA method just for counting. Also update the default mock StorageAuthority and StorageAuthorityReadOnly provided by the mocks package to return actual stream objects (which stream zero results) instead of nil, so that tests can attempt to read from the resulting stream without getting a nil pointer exception. Part of #7350
- Loading branch information
1 parent
7e5c1ca
commit ffef10a
Showing
3 changed files
with
44 additions
and
36 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
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