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
ccef8c78
Commit
ccef8c78
authored
Nov 15, 2004
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb: fix rootFragId in ACC undo log
parent
947efdff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+7
-2
No files found.
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
View file @
ccef8c78
...
...
@@ -9089,8 +9089,9 @@ void Dbacc::writeUndoHeader(Signal* signal,
(
UndoHeader
*
)
&
undopageptr
.
p
->
undoword
[
theadundoindex
];
undoHeaderPtr
->
tableId
=
rootfragrecptr
.
p
->
mytabptr
;
undoHeaderPtr
->
rootFragId
=
rootfragrecptr
.
p
->
fragmentid
[
0
];
undoHeaderPtr
->
rootFragId
=
rootfragrecptr
.
p
->
fragmentid
[
0
]
>>
1
;
undoHeaderPtr
->
localFragId
=
fragrecptr
.
p
->
myfid
;
ndbrequire
((
undoHeaderPtr
->
localFragId
>>
1
)
==
undoHeaderPtr
->
rootFragId
);
Uint32
Ttmp
=
cundoinfolength
;
Ttmp
=
(
Ttmp
<<
4
)
+
pageType
;
Ttmp
=
Ttmp
<<
14
;
...
...
@@ -10200,6 +10201,7 @@ void Dbacc::srDoUndoLab(Signal* signal)
// ROOT FRAGMENT ID
tfid
=
undoHeaderPtr
->
rootFragId
;
ndbrequire
((
undoHeaderPtr
->
localFragId
>>
1
)
==
undoHeaderPtr
->
rootFragId
);
if
(
!
getrootfragmentrec
(
signal
,
rootfragrecptr
,
tfid
))
{
jam
();
/*---------------------------------------------------------------------*/
...
...
@@ -10210,6 +10212,9 @@ void Dbacc::srDoUndoLab(Signal* signal)
// PREVIOUS UNDO LOG RECORD FOR ALL FRAGMENTS
cprevUndoaddress
=
undoHeaderPtr
->
prevUndoAddress
;
undoNext2Lab
(
signal
);
#ifdef VM_TRACE
ndbout_c
(
"ignoring root fid %d"
,
(
int
)
tfid
);
#endif
return
;
}
//if
/*-----------------------------------------------------------------------*/
...
...
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