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
4fed7eb8
Commit
4fed7eb8
authored
Mar 02, 2007
by
tomas@poseidon.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge poseidon.mysql.com:/home/tomas/mysql-5.0-telco-gca
into poseidon.mysql.com:/home/tomas/mysql-5.0-ndb
parents
3cd7b7da
f106c257
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
54 additions
and
5 deletions
+54
-5
ndb/include/kernel/signaldata/AlterTable.hpp
ndb/include/kernel/signaldata/AlterTable.hpp
+2
-1
ndb/include/kernel/signaldata/CreateIndx.hpp
ndb/include/kernel/signaldata/CreateIndx.hpp
+2
-1
ndb/include/kernel/signaldata/CreateTable.hpp
ndb/include/kernel/signaldata/CreateTable.hpp
+2
-1
ndb/include/kernel/signaldata/DropIndx.hpp
ndb/include/kernel/signaldata/DropIndx.hpp
+2
-1
ndb/include/kernel/signaldata/DropTable.hpp
ndb/include/kernel/signaldata/DropTable.hpp
+2
-1
ndb/src/common/debugger/signaldata/PackedSignal.cpp
ndb/src/common/debugger/signaldata/PackedSignal.cpp
+2
-0
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+41
-0
ndb/src/ndbapi/ndberror.c
ndb/src/ndbapi/ndberror.c
+1
-0
No files found.
ndb/include/kernel/signaldata/AlterTable.hpp
View file @
4fed7eb8
...
...
@@ -130,7 +130,8 @@ public:
NullablePrimaryKey
=
740
,
UnsupportedChange
=
741
,
BackupInProgress
=
762
,
IncompatibleVersions
=
763
IncompatibleVersions
=
763
,
SingleUser
=
299
};
private:
...
...
ndb/include/kernel/signaldata/CreateIndx.hpp
View file @
4fed7eb8
...
...
@@ -206,7 +206,8 @@ public:
NotUnique
=
4251
,
AllocationError
=
4252
,
CreateIndexTableFailed
=
4253
,
DuplicateAttributes
=
4258
DuplicateAttributes
=
4258
,
SingleUser
=
299
};
CreateIndxConf
m_conf
;
...
...
ndb/include/kernel/signaldata/CreateTable.hpp
View file @
4fed7eb8
...
...
@@ -91,7 +91,8 @@ public:
RecordTooBig
=
738
,
InvalidPrimaryKeySize
=
739
,
NullablePrimaryKey
=
740
,
InvalidCharset
=
743
InvalidCharset
=
743
,
SingleUser
=
299
};
private:
...
...
ndb/include/kernel/signaldata/DropIndx.hpp
View file @
4fed7eb8
...
...
@@ -172,7 +172,8 @@ public:
IndexNotFound
=
4243
,
BadRequestType
=
4247
,
InvalidName
=
4248
,
NotAnIndex
=
4254
NotAnIndex
=
4254
,
SingleUser
=
299
};
STATIC_CONST
(
SignalLength
=
DropIndxConf
::
SignalLength
+
3
);
...
...
ndb/include/kernel/signaldata/DropTable.hpp
View file @
4fed7eb8
...
...
@@ -58,7 +58,8 @@ public:
InvalidTableVersion
=
241
,
DropInProgress
=
283
,
NoDropTableRecordAvailable
=
1229
,
BackupInProgress
=
761
BackupInProgress
=
761
,
SingleUser
=
299
};
};
...
...
ndb/src/common/debugger/signaldata/PackedSignal.cpp
View file @
4fed7eb8
...
...
@@ -96,6 +96,8 @@ printPACKED_SIGNAL(FILE * output, const Uint32 * theData, Uint32 len, Uint16 rec
}
default:
fprintf
(
output
,
"Unknown signal type
\n
"
);
i
=
len
;
// terminate printing
break
;
}
}
//for
fprintf
(
output
,
"--------- End Packed Signals ----------
\n
"
);
...
...
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
4fed7eb8
...
...
@@ -2910,6 +2910,15 @@ Dbdict::execCREATE_TABLE_REQ(Signal* signal){
break
;
}
if
(
getNodeState
().
getSingleUserMode
()
&&
(
refToNode
(
signal
->
getSendersBlockRef
())
!=
getNodeState
().
getSingleUserApi
()))
{
jam
();
parseRecord
.
errorCode
=
CreateTableRef
::
SingleUser
;
break
;
}
CreateTableRecordPtr
createTabPtr
;
c_opCreateTable
.
seize
(
createTabPtr
);
...
...
@@ -3072,6 +3081,15 @@ Dbdict::execALTER_TABLE_REQ(Signal* signal)
return
;
}
if
(
getNodeState
().
getSingleUserMode
()
&&
(
refToNode
(
signal
->
getSendersBlockRef
())
!=
getNodeState
().
getSingleUserApi
()))
{
jam
();
alterTableRef
(
signal
,
req
,
AlterTableRef
::
SingleUser
);
return
;
}
const
TableRecord
::
TabState
tabState
=
tablePtr
.
p
->
tabState
;
bool
ok
=
false
;
switch
(
tabState
){
...
...
@@ -5401,6 +5419,15 @@ Dbdict::execDROP_TABLE_REQ(Signal* signal){
return
;
}
if
(
getNodeState
().
getSingleUserMode
()
&&
(
refToNode
(
signal
->
getSendersBlockRef
())
!=
getNodeState
().
getSingleUserApi
()))
{
jam
();
dropTableRef
(
signal
,
req
,
DropTableRef
::
SingleUser
);
return
;
}
const
TableRecord
::
TabState
tabState
=
tablePtr
.
p
->
tabState
;
bool
ok
=
false
;
switch
(
tabState
){
...
...
@@ -6531,6 +6558,13 @@ Dbdict::execCREATE_INDX_REQ(Signal* signal)
jam
();
tmperr
=
CreateIndxRef
::
Busy
;
}
else
if
(
getNodeState
().
getSingleUserMode
()
&&
(
refToNode
(
senderRef
)
!=
getNodeState
().
getSingleUserApi
()))
{
jam
();
tmperr
=
CreateIndxRef
::
SingleUser
;
}
if
(
tmperr
!=
CreateIndxRef
::
NoError
)
{
releaseSections
(
signal
);
OpCreateIndex
opBusy
;
...
...
@@ -7101,6 +7135,13 @@ Dbdict::execDROP_INDX_REQ(Signal* signal)
jam
();
tmperr
=
DropIndxRef
::
Busy
;
}
else
if
(
getNodeState
().
getSingleUserMode
()
&&
(
refToNode
(
senderRef
)
!=
getNodeState
().
getSingleUserApi
()))
{
jam
();
tmperr
=
DropIndxRef
::
SingleUser
;
}
if
(
tmperr
!=
DropIndxRef
::
NoError
)
{
err
=
tmperr
;
goto
error
;
...
...
ndb/src/ndbapi/ndberror.c
View file @
4fed7eb8
...
...
@@ -264,6 +264,7 @@ ErrorBundle ErrorCodes[] = {
/**
* Application error
*/
{
299
,
AE
,
"Operation not allowed or aborted due to single user mode"
},
{
763
,
AE
,
"Alter table requires cluster nodes to have exact same version"
},
{
823
,
AE
,
"Too much attrinfo from application in tuple manager"
},
{
831
,
AE
,
"Too many nullable/bitfields in table definition"
},
...
...
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