Skip to content

Commit c050e20

Browse files
committed
Merge branch 'bb-13.1-release'
2 parents 825a9ba + fe03e24 commit c050e20

1,151 files changed

Lines changed: 87453 additions & 11215 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/copilot-instructions.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ enforces the coding style — flag style violations as well as bugs.
8888

8989
## PR hygiene
9090
- Subject line starts with `MDEV-NNNNN`; body wrapped at 72 cols.
91+
- AI attribution must use the `Assisted-by: NAME:MODEL` line in the commit
92+
comment, for example, `Assisted-by: Claude:claude-5.5-opus`. Flag if it's
93+
`Co-Authored-By`, flag if an AI-assisted commit has no attribution.
9194
- Bug fix targets the oldest maintained branch that reproduces (≤3y since GA);
9295
new feature targets the main branch.
9396
- Bug fix commit is minimal; cleanups (unrelated and related - prerequisite

‎BUILD-CMAKE‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ CONFIGURATION PARAMETERS
105105
---------------------------------------------------------------
106106
The procedure above will build with default configuration.
107107

108-
Let's you want to change the configuration parameters and have archive
109-
storage engine compiled into the server instead of building it as pluggable
108+
Lets you want to change the configuration parameters and have archive
109+
storage engine compiled into the server instead of building it as pluggable
110110
module.
111111

112112
1)You can provide parameters on the command line, like
@@ -115,10 +115,10 @@ shell> cmake . -DWITH_ARCHIVE_STORAGE_ENGINE=1
115115

116116
This can be done during the initial configuration or any time later.
117117

118-
Note, that parameters are "sticky", that is they are remebered in the CMake
118+
Note, that parameters are "sticky", that is they are remembered in the CMake
119119
cache (CMakeCache.txt file in the build directory)
120120

121-
2) Configuration using cmake-gui (Windows, OSX, or Linux with cmake-gui
121+
2) Configuration using cmake-gui (Windows, OSX, or Linux with cmake-gui
122122
installed)
123123

124124
From the build directory, issue

‎BUILD/SETUP.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fi
280280
# (returns 0 if finds lines)
281281

282282
# As cmake doesn't like CC and CXX with a space, use symlinks from
283-
# /usr/lib64/ccache if they exits.
283+
# /usr/lib64/ccache if they exist.
284284

285285
if ccache -V > /dev/null 2>&1 && test "$CCACHE_DISABLE" != "1" && test "$CC" = "gcc"
286286
then

‎BUILD/compile-pentium32-gcov‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# along with this program; if not, write to the Free Software
1616
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
1717

18-
# Need to disable ccache, or we loose the gcov-needed compiler output files.
18+
# Need to disable ccache, or we lose the gcov-needed compiler output files.
1919

2020
USING_GCOV=1
2121
CCACHE_GCOV_VERSION_ENABLED=0

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ IF(UNIX AND NOT APPLE)
6363
# the empty CMAKE_BUILD_TYPE) and the build many times for
6464
# different build types without re-running cmake!
6565
# But we only care about WITH_PIC on Unix, where the check for
66-
# CMAKE_BUILD_TYPE hapen to work.
66+
# CMAKE_BUILD_TYPE happen to work.
6767
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
6868
SET(WITH_PIC_DEFAULT ON)
6969
ELSE()

‎COMMUNITY_CONTRIBUTIONS.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Community Contributions Process #
1+
# Community Contributions Process
22

33
MariaDB Server is an Open Source project that thrives thanks to its community.
44
MariaDB Foundation handles all community contributions in a timely manner.
@@ -33,7 +33,7 @@ But it's important to always have both prior to review.
3333
There are constant efforts (including background processes) to make sure
3434
the states of the Jira and the corresponding pull request(s) are kept in sync.
3535

36-
### What should go into the jira ###
36+
### What should go into the jira
3737

3838
The [Jira](https://jira.mariadb.org) is used to describe the design of the
3939
feature: why is it a good idea, what should work, what might not work etc.
@@ -53,9 +53,9 @@ See [here](https://mariadb.org/contribute/#contribute-to-testing)
5353
5454
> [!CAUTION]
5555
> If the jira already exists and is assigned to somebody please reach out
56-
> to them **before** starting to working on it to avoid effort duplication.
56+
> to them **before** starting to working on it to avoid effort duplication.
5757
58-
### What should go into the pull request ###
58+
### What should go into the pull request
5959

6060
The pull request is used to describe the implementation.
6161
E.g. how the bug is fixed. Or how the feature is implemented in detail.
@@ -72,7 +72,7 @@ And that commit should have a commit message that's compliant with
7272
> If there's no Jira or no reference to it in your pull request
7373
> there might be delays in processing it
7474
75-
## States of a Community Contribution ##
75+
## States of a Community Contribution
7676

7777
```mermaid
7878
stateDiagram-v2
@@ -95,7 +95,7 @@ stateDiagram-v2
9595
Closed --> [*]
9696
```
9797

98-
### Draft ###
98+
### Draft
9999

100100
* Pull request
101101
* State: Draft
@@ -122,7 +122,7 @@ the GitHub pull request viewer UI.
122122
> and "External Contribution" pull request labels and there's
123123
> been no activity for 3 months.
124124
125-
### Open ##
125+
### Open
126126

127127
* Pull request
128128
* State: Open
@@ -177,7 +177,7 @@ Questions and Answers
177177
> label to pull requests in this state, if absent.
178178
> This marks the contribution entering the preliminary review queue.
179179
180-
### Preliminary Review ###
180+
### Preliminary Review
181181

182182
* Pull request
183183
* State: Open
@@ -207,7 +207,7 @@ The preliminary reviewer does the following:
207207
Or that an internal developer has taken over the contribution to
208208
re-do it and push it directly.
209209

210-
### Final review ###
210+
### Final review
211211

212212
* Pull request
213213
* State: Open
@@ -253,7 +253,7 @@ detailed information:
253253
> There's a requirement that certain contributions need to undergo
254254
> a separate test step. This is usually done for the new features or
255255
> for more complex and risky bug fixes. If that's the desired state,
256-
> a test engineer will be assigned as a final reviewer. See
256+
> a test engineer will be assigned as a final reviewer. See
257257
> https://mariadb.com/docs/server/reference/product-development/mariadb-quality-development-rules
258258
> for more details.
259259
@@ -264,7 +264,7 @@ detailed information:
264264
> in the middle of the new feature development cycle or vice versa
265265
> it might take up to a couple of months for a developer to do a review.
266266
267-
### Approved ###
267+
### Approved
268268

269269
* Pull request
270270
* State: Open
@@ -288,7 +288,7 @@ The person that does the merge might need some assistance by the contributor.
288288
When the pull request is successfully merged the Jira should be moved to
289289
"Closed" state and its target version should be specified.
290290

291-
### Merged ###
291+
### Merged
292292

293293
* Pull request
294294
* State: Merged
@@ -303,7 +303,7 @@ This is the "success" final state for a contribution.
303303
Ideally all contributions will end up in this state.
304304
No further actions are necessary.
305305

306-
### Closed ###
306+
### Closed
307307

308308
* Pull request
309309
* State: Closed

‎Docs/replication/binlog.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ The contents of binlog files can be inspected in two ways:
4343

4444
Unlike in the traditional binlog format, one binlog event can be stored in multiple different binlog files, and different parts of individual events can be interleaved with one another in each file. The `mariadb-binlog` program will coalesce the different parts of each event as necessary, so the output of the program is a consistent, non-interleaved stream of events. To obtain a correct seequnce of events across multiple binlog files, all binlog files should be passed to the `mariadb-binlog` program at once in correct order; this ensures that events that cross file boundaries are included in the output exactly once.
4545

46+
Note that with `--binlog-storage-engine=innodb`, binlog files are written to disk in the background. There will be some delay from the time a transaction is committed until the data gets written to the binlog file, more so for the last page of data which is only written when it gets full or when InnoDB performs a checkpoint. The server makes the data available quickly to slaves and to `mariadb-binlog --read-from-remote-server` by reading from in-memory buffers, and the data is always written immediately to the InnoDB redo log and will be recovered correctly in case of a crash; the delayed writing to the binlog files themselves is purely a performance optimization. The `FLUSH BINARY LOGS` command can be used to force the writing of all current binlog data into the binlog files.
47+
4648
When using the `--start-position` and `--stop-position` options of `mariadb-binlog`, it is recommended to use GTID positions. The event file offsets used in the tranditional binlog format are not used in the new binlog, and will mostly be reported as zero.
4749

4850
The `--binlog-checksum` option is no longer used with the new binlog implementation. The binlog files are always checksummed, with a CRC32 at the end of each page. To have checksum of the data sent on the network between the master and the slave (in addition to the normal TCP checksums), use the `MASTER_SSL` option for `CHANGE MASTER` to make the connection use SSL.

‎client/client_priv.h‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,11 @@ enum options_client
7777
OPT_MAX_CLIENT_OPTION /* should be always the last */
7878
};
7979

80-
/**
81-
First mysql version supporting the information schema.
82-
*/
83-
#define FIRST_INFORMATION_SCHEMA_VERSION 50003
84-
8580
/**
8681
Name of the information schema database.
8782
*/
8883
#define INFORMATION_SCHEMA_DB_NAME "information_schema"
8984

90-
/**
91-
First mysql version supporting the performance schema.
92-
*/
93-
#define FIRST_PERFORMANCE_SCHEMA_VERSION 50503
94-
9585
/**
9686
Name of the performance schema database.
9787
*/

‎client/mysql.cc‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,10 +1673,6 @@ bool kill_query(const char *reason)
16731673
/* First time try to kill the query, second time the connection */
16741674
interrupted_query++;
16751675

1676-
/* mysqld < 5 does not understand KILL QUERY, skip to KILL CONNECTION */
1677-
if ((interrupted_query == 1) && (mysql_get_server_version(&mysql) < 50000))
1678-
interrupted_query= 2;
1679-
16801676
/* kill_buffer is always big enough because max length of %lu is 15 */
16811677
snprintf(kill_buffer, sizeof(kill_buffer), "KILL %s%lu",
16821678
(interrupted_query == 1) ? "QUERY " : "",
@@ -3563,7 +3559,7 @@ static int com_help(String *buffer, char *line)
35633559
tee_fprintf(stdout, "%s(\\%c) %s\n", buff,
35643560
commands[i].cmd_char, commands[i].doc);
35653561
}
3566-
if (connected && mysql_get_server_version(&mysql) >= 40100)
3562+
if (connected)
35673563
put_info("\nFor server side help, type 'help contents'\n", INFO_INFO);
35683564
return 0;
35693565
}
@@ -4560,6 +4556,8 @@ print_tab_data(MYSQL_RES *result)
45604556
}
45614557
while ((cur = fetch_row(result)))
45624558
{
4559+
if (interrupted_query)
4560+
break;
45634561
lengths=mysql_fetch_lengths(result);
45644562
field= mysql_fetch_fields(result);
45654563
if (opt_binhex && is_binary_field(&field[0]))

‎client/mysqladmin.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
880880
MYSQL_ROW row;
881881

882882
new_line=1;
883-
if (mysql_query(mysql,"show /*!40003 GLOBAL */ variables") ||
883+
if (mysql_query(mysql,"show global variables") ||
884884
!(res=mysql_store_result(mysql)))
885885
{
886886
my_printf_error(0, "unable to show variables; error: '%s'", error_flags,
@@ -902,7 +902,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
902902
void (*func) (MYSQL_RES*, MYSQL_ROW, uint);
903903

904904
new_line = 1;
905-
if (mysql_query(mysql, "show /*!50002 GLOBAL */ status") ||
905+
if (mysql_query(mysql, "show global status") ||
906906
!(res = mysql_store_result(mysql)))
907907
{
908908
my_printf_error(0, "unable to show status; error: '%s'", error_flags,

0 commit comments

Comments
 (0)