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
3c164107
Commit
3c164107
authored
Feb 06, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#16767, bug#16768 - ndb missleading names of error codes
rename error codes
parent
e77aa473
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
mysql-test/t/ndb_dd_ddl.test
mysql-test/t/ndb_dd_ddl.test
+8
-8
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+7
-7
sql/share/errmsg.txt
sql/share/errmsg.txt
+4
-4
No files found.
mysql-test/t/ndb_dd_ddl.test
View file @
3c164107
...
...
@@ -41,7 +41,7 @@ INITIAL_SIZE 16M
UNDO_BUFFER_SIZE
=
1
M
ENGINE
=
NDB
;
--
error
ER_CREATE_
TABLESPACE
_FAILED
--
error
ER_CREATE_
FILEGROUP
_FAILED
CREATE
LOGFILE
GROUP
lg1
ADD
UNDOFILE
'undofile.dat'
INITIAL_SIZE
16
M
...
...
@@ -52,7 +52,7 @@ ALTER LOGFILE GROUP lg1
ADD
UNDOFILE
'undofile02.dat'
INITIAL_SIZE
4
M
ENGINE
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
LOGFILE
GROUP
lg1
ADD
UNDOFILE
'undofile02.dat'
INITIAL_SIZE
4
M
ENGINE
=
NDB
;
...
...
@@ -63,7 +63,7 @@ USE LOGFILE GROUP lg1
INITIAL_SIZE 12M
ENGINE NDB
;
--
error
ER_CREATE_
TABLESPACE
_FAILED
--
error
ER_CREATE_
FILEGROUP
_FAILED
CREATE
TABLESPACE
ts1
ADD
DATAFILE
'datafile.dat'
USE
LOGFILE
GROUP lg1
...
...
@@ -76,7 +76,7 @@ ADD DATAFILE 'datafile2.dat'
INITIAL_SIZE
12
M
ENGINE
=
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
TABLESPACE
ts1
ADD
DATAFILE
'datafile2.dat'
INITIAL_SIZE
12
M
...
...
@@ -105,7 +105,7 @@ ALTER TABLESPACE ts1
DROP
DATAFILE
'datafile2.dat'
ENGINE
=
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
TABLESPACE
ts1
DROP
DATAFILE
'datafile2.dat'
ENGINE
=
NDB
;
...
...
@@ -114,7 +114,7 @@ ALTER TABLESPACE ts1
DROP
DATAFILE
'datafile.dat'
ENGINE
=
NDB
;
--
error
ER_ALTER_
TABLESPACE
_FAILED
--
error
ER_ALTER_
FILEGROUP
_FAILED
ALTER
TABLESPACE
ts1
DROP
DATAFILE
'datafile.dat'
ENGINE
=
NDB
;
...
...
@@ -122,14 +122,14 @@ ENGINE=NDB;
DROP
TABLESPACE
ts1
ENGINE
=
NDB
;
--
error
ER_DROP_
TABLESPACE
_FAILED
--
error
ER_DROP_
FILEGROUP
_FAILED
DROP
TABLESPACE
ts1
ENGINE
=
NDB
;
DROP
LOGFILE
GROUP
lg1
ENGINE
=
NDB
;
--
error
ER_DROP_
TABLESPACE
_FAILED
--
error
ER_DROP_
FILEGROUP
_FAILED
DROP
LOGFILE
GROUP
lg1
ENGINE
=
NDB
;
...
...
sql/ha_ndbcluster.cc
View file @
3c164107
...
...
@@ -9378,7 +9378,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
switch
(
info
->
ts_cmd_type
){
case
(
CREATE_TABLESPACE
):
{
error
=
ER_CREATE_
TABLESPACE
_FAILED
;
error
=
ER_CREATE_
FILEGROUP
_FAILED
;
NdbDictionary
::
Tablespace
ndb_ts
;
NdbDictionary
::
Datafile
ndb_df
;
...
...
@@ -9408,7 +9408,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
case
(
ALTER_TABLESPACE
):
{
error
=
ER_ALTER_
TABLESPACE
_FAILED
;
error
=
ER_ALTER_
FILEGROUP
_FAILED
;
if
(
info
->
ts_alter_tablespace_type
==
ALTER_TABLESPACE_ADD_FILE
)
{
NdbDictionary
::
Datafile
ndb_df
;
...
...
@@ -9437,7 +9437,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
else
{
DBUG_PRINT
(
"error"
,
(
"No such datafile"
));
my_error
(
ER_ALTER_
TABLESPACE
_FAILED
,
MYF
(
0
),
" NO SUCH FILE"
);
my_error
(
ER_ALTER_
FILEGROUP
_FAILED
,
MYF
(
0
),
" NO SUCH FILE"
);
DBUG_RETURN
(
1
);
}
}
...
...
@@ -9452,7 +9452,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
case
(
CREATE_LOGFILE_GROUP
):
{
error
=
ER_CREATE_
TABLESPACE
_FAILED
;
error
=
ER_CREATE_
FILEGROUP
_FAILED
;
NdbDictionary
::
LogfileGroup
ndb_lg
;
NdbDictionary
::
Undofile
ndb_uf
;
if
(
info
->
undo_file_name
==
NULL
)
...
...
@@ -9485,7 +9485,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
case
(
ALTER_LOGFILE_GROUP
):
{
error
=
ER_ALTER_
TABLESPACE
_FAILED
;
error
=
ER_ALTER_
FILEGROUP
_FAILED
;
if
(
info
->
undo_file_name
==
NULL
)
{
/*
...
...
@@ -9507,7 +9507,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
case
(
DROP_TABLESPACE
):
{
error
=
ER_DROP_
TABLESPACE
_FAILED
;
error
=
ER_DROP_
FILEGROUP
_FAILED
;
errmsg
=
"TABLESPACE"
;
if
(
dict
->
dropTablespace
(
dict
->
getTablespace
(
info
->
tablespace_name
)))
{
...
...
@@ -9518,7 +9518,7 @@ int ndbcluster_alter_tablespace(THD* thd, st_alter_tablespace *info)
}
case
(
DROP_LOGFILE_GROUP
):
{
error
=
ER_DROP_
TABLESPACE
_FAILED
;
error
=
ER_DROP_
FILEGROUP
_FAILED
;
errmsg
=
"LOGFILE GROUP"
;
if
(
dict
->
dropLogfileGroup
(
dict
->
getLogfileGroup
(
info
->
logfile_group_name
)))
{
...
...
sql/share/errmsg.txt
View file @
3c164107
...
...
@@ -5739,11 +5739,11 @@ ER_WRONG_VALUE
eng "Incorrect %-.32s value: '%-.128s'"
ER_NO_PARTITION_FOR_GIVEN_VALUE
eng "Table has no partition for value %-.64s"
ER_
TABLESPACE
_OPTION_ONLY_ONCE
ER_
FILEGROUP
_OPTION_ONLY_ONCE
eng "It is not allowed to specify %s more than once"
ER_CREATE_
TABLESPACE
_FAILED
ER_CREATE_
FILEGROUP
_FAILED
eng "Failed to create %s"
ER_DROP_
TABLESPACE
_FAILED
ER_DROP_
FILEGROUP
_FAILED
eng "Failed to drop %s"
ER_TABLESPACE_AUTO_EXTEND_ERROR
eng "The handler doesn't support autoextend of tablespaces"
...
...
@@ -5751,7 +5751,7 @@ ER_WRONG_SIZE_NUMBER
eng "A size parameter was incorrectly specified, either number or on the form 10M"
ER_SIZE_OVERFLOW_ERROR
eng "The size number was correct but we don't allow the digit part to be more than 2 billion"
ER_ALTER_
TABLESPACE
_FAILED
ER_ALTER_
FILEGROUP
_FAILED
eng "Failed to alter: %s"
ER_BINLOG_ROW_LOGGING_FAILED
eng "Writing one row to the row-based binary log failed"
...
...
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