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
8eab1ba0
Commit
8eab1ba0
authored
Mar 23, 2006
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into zim.(none):/home/brian/mysql/dep-5.1
parents
56844bf3
5cc1da54
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
7 deletions
+32
-7
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+0
-2
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+11
-1
sql/ha_ndbcluster_binlog.h
sql/ha_ndbcluster_binlog.h
+2
-0
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
+17
-4
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
+2
-0
No files found.
sql/ha_ndbcluster.cc
View file @
8eab1ba0
...
@@ -101,8 +101,6 @@ static uint ndbcluster_alter_table_flags(uint flags)
...
@@ -101,8 +101,6 @@ static uint ndbcluster_alter_table_flags(uint flags)
#define NDB_FAILED_AUTO_INCREMENT ~(Uint64)0
#define NDB_FAILED_AUTO_INCREMENT ~(Uint64)0
#define NDB_AUTO_INCREMENT_RETRIES 10
#define NDB_AUTO_INCREMENT_RETRIES 10
#define NDB_INVALID_SCHEMA_OBJECT 241
#define ERR_PRINT(err) \
#define ERR_PRINT(err) \
DBUG_PRINT("error", ("%d message: %s", err.code, err.message))
DBUG_PRINT("error", ("%d message: %s", err.code, err.message))
...
...
sql/ha_ndbcluster_binlog.cc
View file @
8eab1ba0
...
@@ -2226,10 +2226,20 @@ ndbcluster_create_event(Ndb *ndb, const NDBTAB *ndbtab,
...
@@ -2226,10 +2226,20 @@ ndbcluster_create_event(Ndb *ndb, const NDBTAB *ndbtab,
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
/*
try retrieving the event, if table version/id matches, we will get
a valid event. Otherwise we have a trailing event from before
*/
if
(
dict
->
getEvent
(
event_name
))
{
DBUG_RETURN
(
0
);
}
/*
/*
trailing event from before; an error, but try to correct it
trailing event from before; an error, but try to correct it
*/
*/
if
(
dict
->
dropEvent
(
my_event
.
getName
()))
if
(
dict
->
getNdbError
().
code
==
NDB_INVALID_SCHEMA_OBJECT
&&
dict
->
dropEvent
(
my_event
.
getName
()))
{
{
if
(
push_warning
)
if
(
push_warning
)
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
...
...
sql/ha_ndbcluster_binlog.h
View file @
8eab1ba0
...
@@ -29,6 +29,8 @@ extern ulong ndb_extra_logging;
...
@@ -29,6 +29,8 @@ extern ulong ndb_extra_logging;
#define INJECTOR_EVENT_LEN 200
#define INJECTOR_EVENT_LEN 200
#define NDB_INVALID_SCHEMA_OBJECT 241
/*
/*
The numbers below must not change as they
The numbers below must not change as they
are passed between mysql servers, and if changed
are passed between mysql servers, and if changed
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
8eab1ba0
...
@@ -3435,6 +3435,11 @@ NdbDictInterface::createEvent(class Ndb & ndb,
...
@@ -3435,6 +3435,11 @@ NdbDictInterface::createEvent(class Ndb & ndb,
// NdbEventImpl *evntImpl = (NdbEventImpl *)evntConf->getUserData();
// NdbEventImpl *evntImpl = (NdbEventImpl *)evntConf->getUserData();
evnt
.
m_eventId
=
evntConf
->
getEventId
();
evnt
.
m_eventKey
=
evntConf
->
getEventKey
();
evnt
.
m_table_id
=
evntConf
->
getTableId
();
evnt
.
m_table_version
=
evntConf
->
getTableVersion
();
if
(
getFlag
)
{
if
(
getFlag
)
{
evnt
.
m_attrListBitmask
=
evntConf
->
getAttrListBitmask
();
evnt
.
m_attrListBitmask
=
evntConf
->
getAttrListBitmask
();
evnt
.
mi_type
=
evntConf
->
getEventType
();
evnt
.
mi_type
=
evntConf
->
getEventType
();
...
@@ -3449,9 +3454,6 @@ NdbDictInterface::createEvent(class Ndb & ndb,
...
@@ -3449,9 +3454,6 @@ NdbDictInterface::createEvent(class Ndb & ndb,
}
}
}
}
evnt
.
m_eventId
=
evntConf
->
getEventId
();
evnt
.
m_eventKey
=
evntConf
->
getEventKey
();
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
...
@@ -3560,7 +3562,10 @@ NdbDictionaryImpl::getEvent(const char * eventName, NdbTableImpl* tab)
...
@@ -3560,7 +3562,10 @@ NdbDictionaryImpl::getEvent(const char * eventName, NdbTableImpl* tab)
delete
ev
;
delete
ev
;
DBUG_RETURN
(
NULL
);
DBUG_RETURN
(
NULL
);
}
}
if
(
info
->
m_table_impl
->
m_status
!=
NdbDictionary
::
Object
::
Retrieved
)
if
((
info
->
m_table_impl
->
m_status
!=
NdbDictionary
::
Object
::
Retrieved
)
||
(
info
->
m_table_impl
->
m_id
!=
ev
->
m_table_id
)
||
(
table_version_major
(
info
->
m_table_impl
->
m_version
)
!=
table_version_major
(
ev
->
m_table_version
)))
{
{
removeCachedObject
(
*
info
->
m_table_impl
);
removeCachedObject
(
*
info
->
m_table_impl
);
info
=
get_local_table_info
(
ev
->
getTableName
());
info
=
get_local_table_info
(
ev
->
getTableName
());
...
@@ -3584,6 +3589,14 @@ NdbDictionaryImpl::getEvent(const char * eventName, NdbTableImpl* tab)
...
@@ -3584,6 +3589,14 @@ NdbDictionaryImpl::getEvent(const char * eventName, NdbTableImpl* tab)
DBUG_PRINT
(
"info"
,(
"Table: id: %d version: %d"
,
DBUG_PRINT
(
"info"
,(
"Table: id: %d version: %d"
,
table
.
m_id
,
table
.
m_version
));
table
.
m_id
,
table
.
m_version
));
if
(
table
.
m_id
!=
ev
->
m_table_id
||
table_version_major
(
table
.
m_version
)
!=
table_version_major
(
ev
->
m_table_version
))
{
m_error
.
code
=
241
;
delete
ev
;
DBUG_RETURN
(
NULL
);
}
#ifndef DBUG_OFF
#ifndef DBUG_OFF
char
buf
[
128
]
=
{
0
};
char
buf
[
128
]
=
{
0
};
mask
.
getText
(
buf
);
mask
.
getText
(
buf
);
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
View file @
8eab1ba0
...
@@ -303,6 +303,8 @@ public:
...
@@ -303,6 +303,8 @@ public:
Uint32
m_eventId
;
Uint32
m_eventId
;
Uint32
m_eventKey
;
Uint32
m_eventKey
;
AttributeMask
m_attrListBitmask
;
AttributeMask
m_attrListBitmask
;
Uint32
m_table_id
;
Uint32
m_table_version
;
BaseString
m_name
;
BaseString
m_name
;
Uint32
mi_type
;
Uint32
mi_type
;
NdbDictionary
::
Event
::
EventDurability
m_dur
;
NdbDictionary
::
Event
::
EventDurability
m_dur
;
...
...
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