Repository navigation
Cherry pick #120972 to 26.3: MySQL dictionary source: accept enable_local_infile only in the configuration file - #121594
Conversation
|
Every conflict here is master context that 26.3 never had, so the resolution is exactly the five files of #120972 and nothing else. The resolved merge is on my fork; I hold
Validated on the resolved branch, built with 26.3's own clang-21 pin, server 26.3.33.1: @nihalzp, you merged #120972, so flagging this to you as the remaining step on the 26.3 arm. |
…guration file `enable_local_infile` sets `MYSQL_OPT_LOCAL_INFILE`, which lets the MySQL endpoint the dictionary points at ask the client for the contents of a file of its choosing, read with the server's own privileges. The source configuration of a dictionary created with a DDL query comes from the query itself, so it may not reach that option; it stays available to a dictionary defined in a server configuration file. (cherry picked from commit c1a3809) Adapted for 26.3. #112070 is not on this branch, so there is no `checkNoSSLPaths` for the guard to sit beside and no `BAD_ARGUMENTS` in the file's `ErrorCodes` block. `checkNoLocalInfile` is therefore added standalone, with that declaration, and hooked into the two `created_from_ddl` call sites this branch already has: the per-`<replica>` loop, which passes the parent prefix so an inherited value is resolved the way `Pool::Pool` resolves it, and the single-endpoint branch. The documentation hunk of the original is dropped, because the settings table it edits does not exist on this branch. Original pull-request: #120972 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
3fc318b to
b371973
Compare
Original pull-request #120972
Do not merge this PR manually
This pull-request is a first step of an automated backporting.
It contains changes similar to calling
git cherry-picklocally.If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.
The check results does not matter at this step - you can safely ignore them.
Before you resolve anything
Conflicts are often caused by a prerequisite change that has not been backported yet, rather than by a real divergence. The bot re-tries this cherry-pick against the release branch on every run, so if that is the case here it will merge itself as soon as the prerequisite lands, and you will see a comment saying so. Manual resolution is only needed while the conflict persists.
Troubleshooting
If the conflicts were resolved in a wrong way
If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:
pr-cherrypicklabel from the PRYou also need to check the Original pull-request for
pr-backports-createdlabel, and delete if it's presented thereThe PR source
The PR is created in the CI job