Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
aff9b385
Commit
aff9b385
authored
May 25, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Introduce the macro TEMP_INDEX_PREFIX_STR.
This is to avoid triggering an error in Doxygen.
parent
d075e80c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
include/ut0ut.h
include/ut0ut.h
+4
-2
row/row0merge.c
row/row0merge.c
+3
-9
No files found.
include/ut0ut.h
View file @
aff9b385
...
@@ -31,8 +31,10 @@ Created 1/20/1994 Heikki Tuuri
...
@@ -31,8 +31,10 @@ Created 1/20/1994 Heikki Tuuri
#include <ctype.h>
#include <ctype.h>
#endif
#endif
#define TEMP_INDEX_PREFIX '\377'
/* Index name prefix in fast index
/** Index name prefix in fast index creation */
creation */
#define TEMP_INDEX_PREFIX '\377'
/** Index name prefix in fast index creation, as a string constant */
#define TEMP_INDEX_PREFIX_STR "\377"
typedef
time_t
ib_time_t
;
typedef
time_t
ib_time_t
;
...
...
row/row0merge.c
View file @
aff9b385
...
@@ -1831,14 +1831,11 @@ row_merge_drop_temp_indexes(void)
...
@@ -1831,14 +1831,11 @@ row_merge_drop_temp_indexes(void)
query graphs needed in deleting the dictionary data from system
query graphs needed in deleting the dictionary data from system
tables in Innobase. Deleting a row from SYS_INDEXES table also
tables in Innobase. Deleting a row from SYS_INDEXES table also
frees the file segments of the B-tree associated with the index. */
frees the file segments of the B-tree associated with the index. */
#if TEMP_INDEX_PREFIX != '\377'
# error "TEMP_INDEX_PREFIX != '\377'"
#endif
static
const
char
drop_temp_indexes
[]
=
static
const
char
drop_temp_indexes
[]
=
"PROCEDURE DROP_TEMP_INDEXES_PROC () IS
\n
"
"PROCEDURE DROP_TEMP_INDEXES_PROC () IS
\n
"
"indexid CHAR;
\n
"
"indexid CHAR;
\n
"
"DECLARE CURSOR c IS SELECT ID FROM SYS_INDEXES
\n
"
"DECLARE CURSOR c IS SELECT ID FROM SYS_INDEXES
\n
"
"WHERE SUBSTR(NAME,0,1)='
\377
';
\n
"
"WHERE SUBSTR(NAME,0,1)='
"
TEMP_INDEX_PREFIX_STR
"
';
\n
"
"BEGIN
\n
"
"BEGIN
\n
"
"
\t
OPEN c;
\n
"
"
\t
OPEN c;
\n
"
"
\t
WHILE 1=1 LOOP
\n
"
"
\t
WHILE 1=1 LOOP
\n
"
...
@@ -2004,15 +2001,12 @@ row_merge_rename_indexes(
...
@@ -2004,15 +2001,12 @@ row_merge_rename_indexes(
/* We use the private SQL parser of Innobase to generate the
/* We use the private SQL parser of Innobase to generate the
query graphs needed in renaming indexes. */
query graphs needed in renaming indexes. */
#if TEMP_INDEX_PREFIX != '\377'
# error "TEMP_INDEX_PREFIX != '\377'"
#endif
static
const
char
rename_indexes
[]
=
static
const
char
rename_indexes
[]
=
"PROCEDURE RENAME_INDEXES_PROC () IS
\n
"
"PROCEDURE RENAME_INDEXES_PROC () IS
\n
"
"BEGIN
\n
"
"BEGIN
\n
"
"UPDATE SYS_INDEXES SET NAME=SUBSTR(NAME,1,LENGTH(NAME)-1)
\n
"
"UPDATE SYS_INDEXES SET NAME=SUBSTR(NAME,1,LENGTH(NAME)-1)
\n
"
"WHERE TABLE_ID = :tableid AND SUBSTR(NAME,0,1)='
\377
';
\n
"
"WHERE TABLE_ID = :tableid AND SUBSTR(NAME,0,1)='"
TEMP_INDEX_PREFIX_STR
"';
\n
"
"END;
\n
"
;
"END;
\n
"
;
ut_ad
(
table
);
ut_ad
(
table
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment