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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
08b8d6ae
Commit
08b8d6ae
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
626c03c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+9
-1
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+7
-10
sql/ha_ndbcluster_binlog.h
sql/ha_ndbcluster_binlog.h
+1
-1
No files found.
sql/ha_ndbcluster.cc
View file @
08b8d6ae
...
@@ -8277,7 +8277,15 @@ NDB_SHARE *ndbcluster_get_share(const char *key, TABLE *table,
...
@@ -8277,7 +8277,15 @@ NDB_SHARE *ndbcluster_get_share(const char *key, TABLE *table,
share
->
table_name
=
share
->
db
+
strlen
(
share
->
db
)
+
1
;
share
->
table_name
=
share
->
db
+
strlen
(
share
->
db
)
+
1
;
ha_ndbcluster
::
set_tabname
(
key
,
share
->
table_name
);
ha_ndbcluster
::
set_tabname
(
key
,
share
->
table_name
);
#ifdef HAVE_NDB_BINLOG
#ifdef HAVE_NDB_BINLOG
ndbcluster_binlog_init_share
(
share
,
table
);
if
(
ndbcluster_binlog_init_share
(
share
,
table
))
{
DBUG_PRINT
(
"error"
,
(
"get_share: %s could not init share"
,
key
));
ndbcluster_real_free_share
(
&
share
);
*
root_ptr
=
old_root
;
if
(
!
have_lock
)
pthread_mutex_unlock
(
&
ndbcluster_mutex
);
DBUG_RETURN
(
0
);
}
#endif
#endif
*
root_ptr
=
old_root
;
*
root_ptr
=
old_root
;
}
}
...
...
sql/ha_ndbcluster_binlog.cc
View file @
08b8d6ae
...
@@ -265,7 +265,7 @@ static void run_query(THD *thd, char *buf, char *end,
...
@@ -265,7 +265,7 @@ static void run_query(THD *thd, char *buf, char *end,
Thd_ndb
*
thd_ndb
=
get_thd_ndb
(
thd
);
Thd_ndb
*
thd_ndb
=
get_thd_ndb
(
thd
);
for
(
i
=
0
;
no_print_error
[
i
];
i
++
)
for
(
i
=
0
;
no_print_error
[
i
];
i
++
)
if
((
thd_ndb
->
m_error_code
==
no_print_error
[
i
])
||
if
((
thd_ndb
->
m_error_code
==
no_print_error
[
i
])
||
(
thd
->
net
.
last_errno
==
no_print_error
[
i
]))
(
thd
->
net
.
last_errno
==
(
unsigned
)
no_print_error
[
i
]))
break
;
break
;
if
(
!
no_print_error
[
i
])
if
(
!
no_print_error
[
i
])
sql_print_error
(
"NDB: %s: error %s %d(ndb: %d) %d %d"
,
sql_print_error
(
"NDB: %s: error %s %d(ndb: %d) %d %d"
,
...
@@ -325,18 +325,14 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
...
@@ -325,18 +325,14 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
share
->
key
);
share
->
key
);
if
((
error
=
open_table_def
(
thd
,
table_share
,
0
)))
if
((
error
=
open_table_def
(
thd
,
table_share
,
0
)))
{
{
sql_print_error
(
"Unable to get table share for %s, error=%d"
,
DBUG_PRINT
(
"error"
,
(
"open_table_def failed: %d my_errno: %d"
,
error
,
my_errno
));
share
->
key
,
error
);
DBUG_PRINT
(
"error"
,
(
"open_table_def failed %d"
,
error
));
free_table_share
(
table_share
);
free_table_share
(
table_share
);
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
}
}
if
((
error
=
open_table_from_share
(
thd
,
table_share
,
""
,
0
/* fon't allocate buffers */
,
if
((
error
=
open_table_from_share
(
thd
,
table_share
,
""
,
0
/* fon't allocate buffers */
,
(
uint
)
READ_ALL
,
0
,
table
,
FALSE
)))
(
uint
)
READ_ALL
,
0
,
table
,
FALSE
)))
{
{
sql_print_error
(
"Unable to open table for %s, error=%d(%d)"
,
DBUG_PRINT
(
"error"
,
(
"open_table_from_share failed %d my_errno: %d"
,
error
,
my_errno
));
share
->
key
,
error
,
my_errno
);
DBUG_PRINT
(
"error"
,
(
"open_table_from_share failed %d"
,
error
));
free_table_share
(
table_share
);
free_table_share
(
table_share
);
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
);
}
}
...
@@ -382,11 +378,12 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
...
@@ -382,11 +378,12 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
/*
/*
Initialize the binlog part of the NDB_SHARE
Initialize the binlog part of the NDB_SHARE
*/
*/
void
ndbcluster_binlog_init_share
(
NDB_SHARE
*
share
,
TABLE
*
_table
)
int
ndbcluster_binlog_init_share
(
NDB_SHARE
*
share
,
TABLE
*
_table
)
{
{
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
MEM_ROOT
*
mem_root
=
&
share
->
mem_root
;
MEM_ROOT
*
mem_root
=
&
share
->
mem_root
;
int
do_event_op
=
ndb_binlog_running
;
int
do_event_op
=
ndb_binlog_running
;
int
error
=
0
;
DBUG_ENTER
(
"ndbcluster_binlog_init_share"
);
DBUG_ENTER
(
"ndbcluster_binlog_init_share"
);
share
->
connect_count
=
g_ndb_cluster_connection
->
get_connect_count
();
share
->
connect_count
=
g_ndb_cluster_connection
->
get_connect_count
();
...
@@ -429,7 +426,7 @@ void ndbcluster_binlog_init_share(NDB_SHARE *share, TABLE *_table)
...
@@ -429,7 +426,7 @@ void ndbcluster_binlog_init_share(NDB_SHARE *share, TABLE *_table)
{
{
share
->
flags
|=
NSF_NO_BINLOG
;
share
->
flags
|=
NSF_NO_BINLOG
;
}
}
DBUG_
VOID_RETURN
;
DBUG_
RETURN
(
error
)
;
}
}
while
(
1
)
while
(
1
)
{
{
...
@@ -456,7 +453,7 @@ void ndbcluster_binlog_init_share(NDB_SHARE *share, TABLE *_table)
...
@@ -456,7 +453,7 @@ void ndbcluster_binlog_init_share(NDB_SHARE *share, TABLE *_table)
share
->
flags
|=
NSF_BLOB_FLAG
;
share
->
flags
|=
NSF_BLOB_FLAG
;
break
;
break
;
}
}
DBUG_
VOID_RETURN
;
DBUG_
RETURN
(
error
)
;
}
}
/*****************************************************************
/*****************************************************************
...
...
sql/ha_ndbcluster_binlog.h
View file @
08b8d6ae
...
@@ -124,7 +124,7 @@ void ndbcluster_binlog_init_handlerton();
...
@@ -124,7 +124,7 @@ void ndbcluster_binlog_init_handlerton();
/*
/*
Initialize the binlog part of the NDB_SHARE
Initialize the binlog part of the NDB_SHARE
*/
*/
void
ndbcluster_binlog_init_share
(
NDB_SHARE
*
share
,
TABLE
*
table
);
int
ndbcluster_binlog_init_share
(
NDB_SHARE
*
share
,
TABLE
*
table
);
bool
ndbcluster_check_if_local_table
(
const
char
*
dbname
,
const
char
*
tabname
);
bool
ndbcluster_check_if_local_table
(
const
char
*
dbname
,
const
char
*
tabname
);
bool
ndbcluster_check_if_local_tables_in_db
(
THD
*
thd
,
const
char
*
dbname
);
bool
ndbcluster_check_if_local_tables_in_db
(
THD
*
thd
,
const
char
*
dbname
);
...
...
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