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
a7921ab6
Commit
a7921ab6
authored
Aug 30, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#20872 master*.err: miscellaneous error messages
parent
8ea0a239
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+3
-0
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+11
-4
No files found.
sql/ha_ndbcluster.cc
View file @
a7921ab6
...
...
@@ -331,6 +331,7 @@ Thd_ndb::Thd_ndb()
all
=
NULL
;
stmt
=
NULL
;
m_error
=
FALSE
;
m_error_code
=
0
;
query_state
&=
NDB_QUERY_NORMAL
;
options
=
0
;
(
void
)
hash_init
(
&
open_tables
,
&
my_charset_bin
,
5
,
0
,
0
,
...
...
@@ -366,6 +367,7 @@ Thd_ndb::init_open_tables()
{
count
=
0
;
m_error
=
FALSE
;
m_error_code
=
0
;
my_hash_reset
(
&
open_tables
);
}
...
...
@@ -489,6 +491,7 @@ void ha_ndbcluster::no_uncommitted_rows_execute_failure()
return
;
DBUG_ENTER
(
"ha_ndbcluster::no_uncommitted_rows_execute_failure"
);
get_thd_ndb
(
current_thd
)
->
m_error
=
TRUE
;
get_thd_ndb
(
current_thd
)
->
m_error_code
=
0
;
DBUG_VOID_RETURN
;
}
...
...
sql/ha_ndbcluster_binlog.cc
View file @
a7921ab6
...
...
@@ -264,12 +264,13 @@ static void run_query(THD *thd, char *buf, char *end,
int
i
;
Thd_ndb
*
thd_ndb
=
get_thd_ndb
(
thd
);
for
(
i
=
0
;
no_print_error
[
i
];
i
++
)
if
(
thd_ndb
->
m_error
==
no_print_error
[
i
])
if
((
thd_ndb
->
m_error_code
==
no_print_error
[
i
])
||
(
thd
->
net
.
last_errno
==
no_print_error
[
i
]))
break
;
if
(
!
no_print_error
[
i
])
sql_print_error
(
"NDB: %s: error %s %d(ndb: %d) %d %d"
,
buf
,
thd
->
net
.
last_error
,
thd
->
net
.
last_errno
,
thd_ndb
->
m_error
,
thd_ndb
->
m_error
_code
,
thd
->
net
.
report_error
,
thd
->
query_error
);
}
...
...
@@ -779,7 +780,10 @@ static int ndbcluster_create_ndb_apply_status_table(THD *thd)
" end_pos BIGINT UNSIGNED NOT NULL, "
" PRIMARY KEY USING HASH (server_id) ) ENGINE=NDB"
);
const
int
no_print_error
[
3
]
=
{
701
,
4009
,
0
};
// do not print error 701 etc
const
int
no_print_error
[
4
]
=
{
ER_TABLE_EXISTS_ERROR
,
701
,
4009
,
0
};
// do not print error 701 etc
run_query
(
thd
,
buf
,
end
,
no_print_error
,
TRUE
);
DBUG_RETURN
(
0
);
...
...
@@ -836,7 +840,10 @@ static int ndbcluster_create_schema_table(THD *thd)
" type INT UNSIGNED NOT NULL,"
" PRIMARY KEY USING HASH (db,name) ) ENGINE=NDB"
);
const
int
no_print_error
[
3
]
=
{
701
,
4009
,
0
};
// do not print error 701 etc
const
int
no_print_error
[
4
]
=
{
ER_TABLE_EXISTS_ERROR
,
701
,
4009
,
0
};
// do not print error 701 etc
run_query
(
thd
,
buf
,
end
,
no_print_error
,
TRUE
);
DBUG_RETURN
(
0
);
...
...
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