Commit 78f9d29
BUG/MINOR: prevents unnecessary reloading when the attribute
If you don't use `client-ca`, the comparison between `BindParams.Verify`
and `client-crt-optional` will never be true, which will force an
unnecessary reload of the instance.
If `client-ca` and `client-crt-optional` aren't used, `BindParams.Verify`
will always be an empty string and, therefore, can't be equal to
`"required"`.
So, if `client-ca` and `BindParams.SslCafile` are equal and **both are
empty**, we don't need to check the value of the `Verify` attribute.
In this case, we can safely skip the reload, because if `client-ca`
didn't change *and* is still empty, the `Verify` value doesn't matter.client-ca is not used.1 parent 1af197c commit 78f9d29
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments