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
4a27e9ad
Commit
4a27e9ad
authored
Mar 13, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#27003
merge to 5.1, adopt testprg to optimized node recovery
parent
62073106
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
storage/ndb/include/kernel/signaldata/LqhKey.hpp
storage/ndb/include/kernel/signaldata/LqhKey.hpp
+1
-0
storage/ndb/src/kernel/blocks/restore.cpp
storage/ndb/src/kernel/blocks/restore.cpp
+16
-1
storage/ndb/test/ndbapi/testNodeRestart.cpp
storage/ndb/test/ndbapi/testNodeRestart.cpp
+2
-2
No files found.
storage/ndb/include/kernel/signaldata/LqhKey.hpp
View file @
4a27e9ad
...
...
@@ -582,6 +582,7 @@ class LqhKeyRef {
* Reciver(s)
*/
friend
class
Dbtc
;
friend
class
Restore
;
/**
* Sender(s)
...
...
storage/ndb/src/kernel/blocks/restore.cpp
View file @
4a27e9ad
...
...
@@ -1154,8 +1154,23 @@ Restore::calulate_hash(Uint32 tableId, const Uint32 *src)
}
void
Restore
::
execLQHKEYREF
(
Signal
*
)
Restore
::
execLQHKEYREF
(
Signal
*
signal
)
{
FilePtr
file_ptr
;
LqhKeyRef
*
ref
=
(
LqhKeyRef
*
)
signal
->
getDataPtr
();
m_file_pool
.
getPtr
(
file_ptr
,
ref
->
connectPtr
);
char
buf
[
255
],
name
[
100
];
BaseString
::
snprintf
(
name
,
sizeof
(
name
),
"%u/T%dF%d"
,
file_ptr
.
p
->
m_lcp_no
,
file_ptr
.
p
->
m_table_id
,
file_ptr
.
p
->
m_fragment_id
);
BaseString
::
snprintf
(
buf
,
sizeof
(
buf
),
"Error %d during restore of %s"
,
ref
->
errorCode
,
name
);
progError
(
__LINE__
,
NDBD_EXIT_INVALID_LCP_FILE
,
buf
);
ndbrequire
(
false
);
}
...
...
storage/ndb/test/ndbapi/testNodeRestart.cpp
View file @
4a27e9ad
...
...
@@ -1332,7 +1332,7 @@ runBug27003(NDBT_Context* ctx, NDBT_Step* step)
int
node
=
res
.
getRandomNotMasterNodeId
(
rand
());
ndbout_c
(
"node: %d"
,
node
);
if
(
res
.
restartOneDbNode
(
node
,
fals
e
,
true
,
true
))
if
(
res
.
restartOneDbNode
(
node
,
tru
e
,
true
,
true
))
return
NDBT_FAILED
;
Uint32
pos
=
0
;
...
...
@@ -1351,7 +1351,7 @@ runBug27003(NDBT_Context* ctx, NDBT_Step* step)
if
(
res
.
insertErrorInNode
(
node
,
errnos
[
pos
]))
return
NDBT_FAILED
;
int
val2
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
};
int
val2
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
3
};
if
(
res
.
dumpStateOneNode
(
node
,
val2
,
2
))
return
NDBT_FAILED
;
...
...
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