Skip to content

Commit c71dd21

Browse files
committed
wl#6205 - InnoDB support for tablespaces, wl#7957 - MDL for tablespaces
1 parent 9a0c053 commit c71dd21

File tree

158 files changed

+13631
-1265
lines changed

Some content is hidden

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

158 files changed

+13631
-1265
lines changed

client/mysqltest.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -7282,7 +7282,8 @@ void init_win_path_patterns()
72827282
"$MYSQL_SHAREDIR",
72837283
"$MYSQL_LIBDIR",
72847284
"./test/",
7285-
".ibd"};
7285+
".ibd",
7286+
"ibdata"};
72867287
int num_paths= sizeof(paths)/sizeof(char*);
72877288
int i;
72887289
char* p;

extra/innochecksum.cc

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -1303,7 +1303,8 @@ int main(
13031303
if partial_page_read is enable. */
13041304
bytes = read_file(buf,
13051305
partial_page_read,
1306-
page_size.physical(),
1306+
static_cast<ulong>(
1307+
page_size.physical()),
13071308
fil_in);
13081309

13091310
partial_page_read = false;
@@ -1340,7 +1341,8 @@ int main(
13401341
while (!feof(fil_in)) {
13411342

13421343
bytes = read_file(buf, partial_page_read,
1343-
page_size.physical(), fil_in);
1344+
static_cast<ulong>(
1345+
page_size.physical()), fil_in);
13441346
partial_page_read = false;
13451347

13461348
if (!bytes && feof(fil_in)) {
@@ -1401,8 +1403,8 @@ int main(
14011403
/* Rewrite checksum */
14021404
if (do_write
14031405
&& !write_file(filename, fil_in, buf,
1404-
page_size.is_compressed(),
1405-
&pos, page_size.physical())) {
1406+
page_size.is_compressed(), &pos,
1407+
static_cast<ulong>(page_size.physical()))) {
14061408

14071409
DBUG_RETURN(1);
14081410
}

include/my_base.h

+16-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -479,19 +479,22 @@ is the global server default. */
479479
#define HA_ERR_TABLE_IN_FK_CHECK 183 /* Table being used in foreign key check */
480480
#define HA_ERR_TABLESPACE_EXISTS 184 /* The tablespace existed in storage engine */
481481
#define HA_ERR_TOO_MANY_FIELDS 185 /* Table has too many columns */
482-
#define HA_ERR_ROW_IN_WRONG_PARTITION 186 /* Row in wrong partition */
483-
#define HA_ERR_INNODB_READ_ONLY 187 /* InnoDB is in read only mode. */
482+
#define HA_ERR_ROW_IN_WRONG_PARTITION 186 /* Row in wrong partition */
483+
#define HA_ERR_INNODB_READ_ONLY 187 /* InnoDB is in read only mode. */
484484
#define HA_ERR_FTS_EXCEED_RESULT_CACHE_LIMIT 188 /* FTS query exceeds result cache limit */
485-
#define HA_ERR_TEMP_FILE_WRITE_FAILURE 189 /* Temporary file write failure */
486-
#define HA_ERR_INNODB_FORCED_RECOVERY 190 /* Innodb is in force recovery mode */
487-
#define HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE 191 /* Too many words in a phrase */
488-
#define HA_ERR_FK_DEPTH_EXCEEDED 192 /* FK cascade depth exceeded */
489-
#define HA_MISSING_CREATE_OPTION 193 /* Option Missing during Create */
490-
#define HA_ERR_SE_OUT_OF_MEMORY 194 /* Out of memory in storage engine */
491-
#define HA_ERR_TABLE_CORRUPT 195 /* Table/Clustered index is corrupted. */
492-
#define HA_ERR_QUERY_INTERRUPTED 196
493-
#define HA_ERR_TABLESPACE_MISSING 197 /* Missing Tablespace */
494-
#define HA_ERR_LAST 197 /* Copy of last error nr */
485+
#define HA_ERR_TEMP_FILE_WRITE_FAILURE 189 /* Temporary file write failure */
486+
#define HA_ERR_INNODB_FORCED_RECOVERY 190 /* Innodb is in force recovery mode */
487+
#define HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE 191 /* Too many words in a phrase */
488+
#define HA_ERR_FK_DEPTH_EXCEEDED 192 /* FK cascade depth exceeded */
489+
#define HA_MISSING_CREATE_OPTION 193 /* Option Missing during Create */
490+
#define HA_ERR_SE_OUT_OF_MEMORY 194 /* Out of memory in storage engine */
491+
#define HA_ERR_TABLE_CORRUPT 195 /* Table/Clustered index is corrupted. */
492+
#define HA_ERR_QUERY_INTERRUPTED 196 /* The query was interrupted */
493+
#define HA_ERR_TABLESPACE_MISSING 197 /* Missing Tablespace */
494+
#define HA_ERR_TABLESPACE_IS_NOT_EMPTY 198 /* Tablespace is not empty */
495+
#define HA_ERR_WRONG_FILE_NAME 199 /* Invalid Filename */
496+
#define HA_ERR_NOT_ALLOWED_COMMAND 200 /* Operation is not allowed */
497+
#define HA_ERR_LAST 200 /* Copy of last error nr */
495498

496499
/* Number of different errors */
497500
#define HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1)

0 commit comments

Comments
 (0)