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
ac622fee
Commit
ac622fee
authored
Jun 22, 2006
by
pekka@clam.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#18781 post-merge 5.0->5.1 fixes (one more to come)
have to push this to be able to push 5.0
parent
47a20044
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
11 deletions
+23
-11
storage/ndb/include/kernel/signaldata/DictLock.hpp
storage/ndb/include/kernel/signaldata/DictLock.hpp
+0
-0
storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp
storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp
+1
-0
storage/ndb/src/kernel/blocks/dbdict/DictLock.txt
storage/ndb/src/kernel/blocks/dbdict/DictLock.txt
+0
-0
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+11
-7
storage/ndb/src/ndbapi/ndberror.c
storage/ndb/src/ndbapi/ndberror.c
+1
-0
storage/ndb/test/ndbapi/testDict.cpp
storage/ndb/test/ndbapi/testDict.cpp
+6
-3
storage/ndb/test/src/NdbRestarter.cpp
storage/ndb/test/src/NdbRestarter.cpp
+4
-1
No files found.
ndb/include/kernel/signaldata/DictLock.hpp
→
storage/
ndb/include/kernel/signaldata/DictLock.hpp
View file @
ac622fee
File moved
storage/ndb/src/kernel/blocks/dbdict/Dbdict.hpp
View file @
ac622fee
...
...
@@ -1082,6 +1082,7 @@ private:
BlockState
&
operator
=
(
const
BlockState
&
bs
)
{
Dbdict
*
dict
=
(
Dbdict
*
)
globalData
.
getBlock
(
DBDICT
);
dict
->
infoEvent
(
"DICT: bs %d->%d"
,
m_value
,
bs
.
m_value
);
globalSignalLoggers
.
log
(
DBDICT
,
"bs %d->%d"
,
m_value
,
bs
.
m_value
);
m_value
=
bs
.
m_value
;
return
*
this
;
}
...
...
ndb/src/kernel/blocks/dbdict/DictLock.txt
→
storage/
ndb/src/kernel/blocks/dbdict/DictLock.txt
View file @
ac622fee
File moved
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
ac622fee
...
...
@@ -15055,13 +15055,14 @@ Dbdih::sendDictLockReq(Signal* signal, Uint32 lockType, Callback c)
{
Uint32
masterVersion
=
getNodeInfo
(
cmasterNodeId
).
m_version
;
unsigned
int
get_major
=
getMajor
(
masterVersion
);
unsigned
int
get_minor
=
getMinor
(
masterVersion
);
unsigned
int
get_build
=
getBuild
(
masterVersion
);
ndbrequire
(
get_major
==
4
||
get_major
==
5
);
const
unsigned
int
get_major
=
getMajor
(
masterVersion
);
const
unsigned
int
get_minor
=
getMinor
(
masterVersion
);
const
unsigned
int
get_build
=
getBuild
(
masterVersion
);
ndbrequire
(
get_major
>=
4
);
if
(
masterVersion
<
NDBD_DICT_LOCK_VERSION_5
||
masterVersion
<
NDBD_DICT_LOCK_VERSION_5_1
&&
get_major
==
5
&&
get_minor
==
1
||
ERROR_INSERTED
(
7176
))
{
jam
();
...
...
@@ -15132,10 +15133,13 @@ Dbdih::sendDictUnlockOrd(Signal* signal, Uint32 lockSlavePtrI)
{
Uint32
masterVersion
=
getNodeInfo
(
cmasterNodeId
).
m_version
;
unsigned
int
get_major
=
getMajor
(
masterVersion
);
ndbrequire
(
get_major
==
4
||
get_major
==
5
);
const
unsigned
int
get_major
=
getMajor
(
masterVersion
);
const
unsigned
int
get_minor
=
getMinor
(
masterVersion
);
ndbrequire
(
get_major
>=
4
);
if
(
masterVersion
<
NDBD_DICT_LOCK_VERSION_5
||
masterVersion
<
NDBD_DICT_LOCK_VERSION_5_1
&&
get_major
==
5
&&
get_minor
==
1
||
ERROR_INSERTED
(
7176
))
{
return
;
}
...
...
storage/ndb/src/ndbapi/ndberror.c
View file @
ac622fee
...
...
@@ -214,6 +214,7 @@ ErrorBundle ErrorCodes[] = {
* OverloadError
*/
{
701
,
DMEC
,
OL
,
"System busy with other schema operation"
},
{
711
,
DMEC
,
OL
,
"System busy with node restart, schema operations not allowed"
},
{
410
,
DMEC
,
OL
,
"REDO log files overloaded, consult online manual (decrease TimeBetweenLocalCheckpoints, and|or increase NoOfFragmentLogFiles)"
},
{
677
,
DMEC
,
OL
,
"Index UNDO buffers overloaded (increase UndoIndexBuffer)"
},
{
891
,
DMEC
,
OL
,
"Data UNDO buffers overloaded (increase UndoDataBuffer)"
},
...
...
storage/ndb/test/ndbapi/testDict.cpp
View file @
ac622fee
...
...
@@ -1852,7 +1852,9 @@ runDictOps(NDBT_Context* ctx, NDBT_Step* step)
Ndb
*
pNdb
=
GETNDB
(
step
);
NdbDictionary
::
Dictionary
*
pDic
=
pNdb
->
getDictionary
();
const
NdbDictionary
::
Table
*
pTab
=
ctx
->
getTab
();
const
char
*
tabName
=
pTab
->
getName
();
//const char* tabName = pTab->getName(); //XXX what goes on?
char
tabName
[
40
];
strcpy
(
tabName
,
pTab
->
getName
());
const
unsigned
long
maxsleep
=
100
;
//ms
...
...
@@ -1888,7 +1890,7 @@ runDictOps(NDBT_Context* ctx, NDBT_Step* step)
// replace by the Retrieved table
pTab
=
pTab2
;
int
records
=
myRandom48
(
ctx
->
getNumRecords
()
);
int
records
=
ctx
->
getNumRecords
(
);
g_info
<<
"2: load "
<<
records
<<
" records"
<<
endl
;
HugoTransactions
hugoTrans
(
*
pTab
);
if
(
hugoTrans
.
loadTable
(
pNdb
,
records
)
!=
0
)
{
...
...
@@ -1925,7 +1927,8 @@ runDictOps(NDBT_Context* ctx, NDBT_Step* step)
result
=
NDBT_FAILED
;
break
;
}
if
(
pDic
->
getNdbError
().
code
!=
709
)
{
if
(
pDic
->
getNdbError
().
code
!=
709
&&
pDic
->
getNdbError
().
code
!=
723
)
{
const
NdbError
err
=
pDic
->
getNdbError
();
g_err
<<
"2: "
<<
tabName
<<
": verify drop: "
<<
err
<<
endl
;
result
=
NDBT_FAILED
;
...
...
storage/ndb/test/src/NdbRestarter.cpp
View file @
ac622fee
...
...
@@ -329,7 +329,10 @@ NdbRestarter::waitNodesState(int * _nodes, int _num_nodes,
}
g_info
<<
"State node "
<<
ndbNode
->
node_id
<<
" "
<<
ndb_mgm_get_node_status_string
(
ndbNode
->
node_status
)
<<
endl
;
<<
ndb_mgm_get_node_status_string
(
ndbNode
->
node_status
);
if
(
ndbNode
->
node_status
==
NDB_MGM_NODE_STATUS_STARTING
)
g_info
<<
", start_phase="
<<
ndbNode
->
start_phase
;
g_info
<<
endl
;
assert
(
ndbNode
!=
NULL
);
...
...
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