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
8cb9f0ef
Commit
8cb9f0ef
authored
Jul 19, 2005
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#11355 some fixes to index drop etc
parent
30feab4c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
337 additions
and
159 deletions
+337
-159
ndb/src/kernel/blocks/ERROR_codes.txt
ndb/src/kernel/blocks/ERROR_codes.txt
+3
-2
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+92
-56
ndb/src/kernel/blocks/dbdict/Dbdict.hpp
ndb/src/kernel/blocks/dbdict/Dbdict.hpp
+230
-99
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+8
-2
ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
+4
-0
No files found.
ndb/src/kernel/blocks/ERROR_codes.txt
View file @
8cb9f0ef
...
...
@@ -408,10 +408,11 @@ Drop Table/Index:
4001: Crash on REL_TABMEMREQ in TUP
4002: Crash on DROP_TABFILEREQ in TUP
4003: Fail next trigger create in TUP
4004: Fail next trigger drop in TUP
8033: Fail next trigger create in TC
8034: Fail next index create in TC
8035: Fail next trigger drop in TC
8036: Fail next index drop in TC
System Restart:
---------------
...
...
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
8cb9f0ef
This diff is collapsed.
Click to expand it.
ndb/src/kernel/blocks/dbdict/Dbdict.hpp
View file @
8cb9f0ef
This diff is collapsed.
Click to expand it.
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
8cb9f0ef
...
...
@@ -11043,6 +11043,7 @@ void Dbtc::execCREATE_TRIG_REQ(Signal* signal)
if
(
ERROR_INSERTED
(
8033
)
||
!
c_theDefinedTriggers
.
seizeId
(
triggerPtr
,
createTrigReq
->
getTriggerId
()))
{
jam
();
CLEAR_ERROR_INSERT_VALUE
;
// Failed to allocate trigger record
CreateTrigRef
*
const
createTrigRef
=
...
...
@@ -11077,8 +11078,10 @@ void Dbtc::execDROP_TRIG_REQ(Signal* signal)
DropTrigReq
*
const
dropTrigReq
=
(
DropTrigReq
*
)
&
signal
->
theData
[
0
];
BlockReference
sender
=
signal
->
senderBlockRef
();
if
((
c_theDefinedTriggers
.
getPtr
(
dropTrigReq
->
getTriggerId
()))
==
NULL
)
{
if
(
ERROR_INSERTED
(
8035
)
||
(
c_theDefinedTriggers
.
getPtr
(
dropTrigReq
->
getTriggerId
()))
==
NULL
)
{
jam
();
CLEAR_ERROR_INSERT_VALUE
;
// Failed to find find trigger record
DropTrigRef
*
const
dropTrigRef
=
(
DropTrigRef
*
)
&
signal
->
theData
[
0
];
...
...
@@ -11110,6 +11113,7 @@ void Dbtc::execCREATE_INDX_REQ(Signal* signal)
if
(
ERROR_INSERTED
(
8034
)
||
!
c_theIndexes
.
seizeId
(
indexPtr
,
createIndxReq
->
getIndexId
()))
{
jam
();
CLEAR_ERROR_INSERT_VALUE
;
// Failed to allocate index record
CreateIndxRef
*
const
createIndxRef
=
...
...
@@ -11321,8 +11325,10 @@ void Dbtc::execDROP_INDX_REQ(Signal* signal)
TcIndexData
*
indexData
;
BlockReference
sender
=
signal
->
senderBlockRef
();
if
((
indexData
=
c_theIndexes
.
getPtr
(
dropIndxReq
->
getIndexId
()))
==
NULL
)
{
if
(
ERROR_INSERTED
(
8036
)
||
(
indexData
=
c_theIndexes
.
getPtr
(
dropIndxReq
->
getIndexId
()))
==
NULL
)
{
jam
();
CLEAR_ERROR_INSERT_VALUE
;
// Failed to find index record
DropIndxRef
*
const
dropIndxRef
=
(
DropIndxRef
*
)
signal
->
getDataPtrSend
();
...
...
ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
View file @
8cb9f0ef
...
...
@@ -305,6 +305,10 @@ Dbtup::primaryKey(Tablerec* const regTabPtr, Uint32 attrId)
Uint32
Dbtup
::
dropTrigger
(
Tablerec
*
table
,
const
DropTrigReq
*
req
)
{
if
(
ERROR_INSERTED
(
4004
))
{
CLEAR_ERROR_INSERT_VALUE
;
return
9999
;
}
Uint32
triggerId
=
req
->
getTriggerId
();
TriggerType
::
Value
ttype
=
req
->
getTriggerType
();
...
...
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