-
Notifications
You must be signed in to change notification settings - Fork 102
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
Allow use_remote_estimate to be set to 0. #335
Allow use_remote_estimate to be set to 0. #335
Conversation
Previously, the code applying default settings would assume the option was unset, and set the default value of 1. We use a sentinel value instead, which allows us to detect this case separately.
Can one of the admins verify this patch? |
Test this, please |
Test FAILed. |
Hi @deathwish, Thanks for the patch! It looks like there are some test failures. Could you please fix those? For example, see here: https://jenkins.juliogonzalez.es/job/tds_fdw-build-pr/15/DISTRO=centos7,PG_VER=11,label=docker/console In
Isn't the following condition correct for this context instead?:
|
d12b303
to
55f74e6
Compare
The -1 value is supposed to be replaced by the option's default value in all cases, so I view the test failures as indicative. Ensuring defaults are set before option validation in all cases, as the commit I just pushed does, seems to fix the test failures and likely fixes other problems. ETA: It's possible that |
Test this, please |
Test PASSed. |
This has been merged. Thanks again for the patch! |
Great! Glad I could help, thanks for getting this in. |
Previously, the code applying default settings would assume the option was unset, and set the default value of 1. We use a sentinel value instead, which allows us to detect this case separately.