-
Notifications
You must be signed in to change notification settings - Fork 11
evp_fetch: add -f option for selecting the exclusive fetch type #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Eugene Syromiatnikov <[email protected]>
Signed-off-by: Eugene Syromiatnikov <[email protected]>
… the library Signed-off-by: Eugene Syromiatnikov <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, there is just one nit to get fixed. thanks.
source/evp_fetch.c
Outdated
| for (i = 0; i < ARRAY_SIZE(type_map); i++) { | ||
| if (!strcmp(fetch_type, type_map[i].name)) { | ||
| exclusive_fetch_type = type_map[i].id; | ||
| if (type_map[i] != NULL, !strcmp(fetch_type, type_map[i])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/NULL,/NULL &&
otherwise looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ufff, good catch, thanks! Fixed.
Signed-off-by: Eugene Syromiatnikov <[email protected]>
Signed-off-by: Eugene Syromiatnikov <[email protected]>
…n to the envvar Signed-off-by: Eugene Syromiatnikov <[email protected]>
382a34f to
4ab8e0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, thanks.
Apparently,
evp_fetchtest has an (undocumented) environment variable that allows specifying a fetch algorithm to be fetched exclusively, instead of iterating over all the available ones in a round robin fashion. Define a command-line option for that, similarly to the way other parameters are controlled in other tests, and document it, along with the original environment variable.