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
28e92545
Commit
28e92545
authored
Feb 07, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MySQL Bugs: #16925: ndb, added additional getters on NdbDictionary::Event
parent
69b33265
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
0 deletions
+45
-0
storage/ndb/include/ndbapi/NdbDictionary.hpp
storage/ndb/include/ndbapi/NdbDictionary.hpp
+9
-0
storage/ndb/src/ndbapi/NdbDictionary.cpp
storage/ndb/src/ndbapi/NdbDictionary.cpp
+29
-0
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
+6
-0
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
+1
-0
No files found.
storage/ndb/include/ndbapi/NdbDictionary.hpp
View file @
28e92545
...
@@ -1217,6 +1217,10 @@ public:
...
@@ -1217,6 +1217,10 @@ public:
* Add type of event that should be detected
* Add type of event that should be detected
*/
*/
void
addTableEvent
(
const
TableEvent
te
);
void
addTableEvent
(
const
TableEvent
te
);
/**
* Check if a specific table event will be detected
*/
bool
getTableEvent
(
const
TableEvent
te
)
const
;
/**
/**
* Set durability of the event
* Set durability of the event
*/
*/
...
@@ -1270,6 +1274,11 @@ public:
...
@@ -1270,6 +1274,11 @@ public:
*/
*/
int
getNoOfEventColumns
()
const
;
int
getNoOfEventColumns
()
const
;
/**
* Get a specific column in the event
*/
const
Column
*
getEventColumn
(
unsigned
no
)
const
;
/**
/**
* The merge events flag is false by default. Setting it true
* The merge events flag is false by default. Setting it true
* implies that events are merged in following ways:
* implies that events are merged in following ways:
...
...
storage/ndb/src/ndbapi/NdbDictionary.cpp
View file @
28e92545
...
@@ -857,6 +857,12 @@ NdbDictionary::Event::addTableEvent(const TableEvent t)
...
@@ -857,6 +857,12 @@ NdbDictionary::Event::addTableEvent(const TableEvent t)
m_impl
.
addTableEvent
(
t
);
m_impl
.
addTableEvent
(
t
);
}
}
bool
NdbDictionary
::
Event
::
getTableEvent
(
const
TableEvent
t
)
const
{
return
m_impl
.
getTableEvent
(
t
);
}
void
void
NdbDictionary
::
Event
::
setDurability
(
EventDurability
d
)
NdbDictionary
::
Event
::
setDurability
(
EventDurability
d
)
{
{
...
@@ -913,6 +919,29 @@ int NdbDictionary::Event::getNoOfEventColumns() const
...
@@ -913,6 +919,29 @@ int NdbDictionary::Event::getNoOfEventColumns() const
return
m_impl
.
getNoOfEventColumns
();
return
m_impl
.
getNoOfEventColumns
();
}
}
const
NdbDictionary
::
Column
*
NdbDictionary
::
Event
::
getEventColumn
(
unsigned
no
)
const
{
if
(
m_impl
.
m_columns
.
size
())
{
if
(
no
<
m_impl
.
m_columns
.
size
())
{
return
m_impl
.
m_columns
[
no
];
}
}
else
if
(
m_impl
.
m_attrIds
.
size
())
{
if
(
no
<
m_impl
.
m_attrIds
.
size
())
{
NdbTableImpl
*
tab
=
m_impl
.
m_tableImpl
;
if
(
tab
==
0
)
return
0
;
return
tab
->
getColumn
(
m_impl
.
m_attrIds
[
no
]);
}
}
return
0
;
}
void
NdbDictionary
::
Event
::
mergeEvents
(
bool
flag
)
void
NdbDictionary
::
Event
::
mergeEvents
(
bool
flag
)
{
{
m_impl
.
m_mergeEvents
=
flag
;
m_impl
.
m_mergeEvents
=
flag
;
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
28e92545
...
@@ -1143,6 +1143,12 @@ NdbEventImpl::addTableEvent(const NdbDictionary::Event::TableEvent t = NdbDicti
...
@@ -1143,6 +1143,12 @@ NdbEventImpl::addTableEvent(const NdbDictionary::Event::TableEvent t = NdbDicti
mi_type
|=
(
unsigned
)
t
;
mi_type
|=
(
unsigned
)
t
;
}
}
bool
NdbEventImpl
::
getTableEvent
(
const
NdbDictionary
::
Event
::
TableEvent
t
)
const
{
return
(
mi_type
&
(
unsigned
)
t
)
==
(
unsigned
)
t
;
}
void
void
NdbEventImpl
::
setDurability
(
NdbDictionary
::
Event
::
EventDurability
d
)
NdbEventImpl
::
setDurability
(
NdbDictionary
::
Event
::
EventDurability
d
)
{
{
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.hpp
View file @
28e92545
...
@@ -281,6 +281,7 @@ public:
...
@@ -281,6 +281,7 @@ public:
void
setTable
(
const
char
*
table
);
void
setTable
(
const
char
*
table
);
const
char
*
getTableName
()
const
;
const
char
*
getTableName
()
const
;
void
addTableEvent
(
const
NdbDictionary
::
Event
::
TableEvent
t
);
void
addTableEvent
(
const
NdbDictionary
::
Event
::
TableEvent
t
);
bool
getTableEvent
(
const
NdbDictionary
::
Event
::
TableEvent
t
)
const
;
void
setDurability
(
NdbDictionary
::
Event
::
EventDurability
d
);
void
setDurability
(
NdbDictionary
::
Event
::
EventDurability
d
);
NdbDictionary
::
Event
::
EventDurability
getDurability
()
const
;
NdbDictionary
::
Event
::
EventDurability
getDurability
()
const
;
void
setReport
(
NdbDictionary
::
Event
::
EventReport
r
);
void
setReport
(
NdbDictionary
::
Event
::
EventReport
r
);
...
...
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