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
976be6fa
Commit
976be6fa
authored
Feb 20, 2006
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - rbr blobs etc: minor changes bug#17045 bug#17505
parent
62870815
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+8
-6
storage/ndb/src/ndbapi/Ndb.cpp
storage/ndb/src/ndbapi/Ndb.cpp
+8
-6
No files found.
sql/ha_ndbcluster_binlog.cc
View file @
976be6fa
...
...
@@ -2913,17 +2913,19 @@ pthread_handler_t ndb_binlog_thread_func(void *arg)
DBUG_ASSERT
(
share
!=
0
);
}
#endif
// set injector_ndb database/schema from table internal name
int
ret
=
ndb
->
setDatabaseAndSchemaName
(
pOp
->
getEvent
()
->
getTable
());
assert
(
ret
==
0
);
if
((
unsigned
)
pOp
->
getEventType
()
<
(
unsigned
)
NDBEVENT
::
TE_FIRST_NON_DATA_EVENT
)
ndb_binlog_thread_handle_data_event
(
ndb
,
pOp
,
row
,
trans
);
else
{
// set injector_ndb database/schema from table internal name
int
ret
=
ndb
->
setDatabaseAndSchemaName
(
pOp
->
getEvent
()
->
getTable
());
assert
(
ret
==
0
);
ndb_binlog_thread_handle_non_data_event
(
ndb
,
pOp
,
row
);
// reset to catch errors
ndb
->
setDatabaseName
(
""
);
ndb
->
setDatabaseSchemaName
(
""
);
// reset to catch errors
ndb
->
setDatabaseName
(
""
);
ndb
->
setDatabaseSchemaName
(
""
);
}
pOp
=
ndb
->
nextEvent
();
}
while
(
pOp
&&
pOp
->
getGCI
()
==
gci
);
...
...
storage/ndb/src/ndbapi/Ndb.cpp
View file @
976be6fa
...
...
@@ -1093,12 +1093,14 @@ int Ndb::setDatabaseAndSchemaName(const NdbDictionary::Table* t)
if
(
s1
&&
s1
!=
s0
)
{
const
char
*
s2
=
strchr
(
s1
+
1
,
table_name_separator
);
if
(
s2
&&
s2
!=
s1
+
1
)
{
char
buf
[
200
];
sprintf
(
buf
,
"%.*s"
,
s1
-
s0
,
s0
);
setDatabaseName
(
buf
);
sprintf
(
buf
,
"%.*s"
,
s2
-
(
s1
+
1
),
s1
+
1
);
setDatabaseSchemaName
(
buf
);
return
0
;
char
buf
[
NAME_LEN
+
1
];
if
(
s1
-
s0
<=
NAME_LEN
&&
s2
-
(
s1
+
1
)
<=
NAME_LEN
)
{
sprintf
(
buf
,
"%.*s"
,
s1
-
s0
,
s0
);
setDatabaseName
(
buf
);
sprintf
(
buf
,
"%.*s"
,
s2
-
(
s1
+
1
),
s1
+
1
);
setDatabaseSchemaName
(
buf
);
return
0
;
}
}
}
return
-
1
;
...
...
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