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
802990e1
Commit
802990e1
authored
Aug 28, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/51-work
parents
b3ee6453
67a5d98c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
30 deletions
+48
-30
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+48
-30
No files found.
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
802990e1
...
@@ -14706,6 +14706,8 @@ void Dblqh::execSr(Signal* signal)
...
@@ -14706,6 +14706,8 @@ void Dblqh::execSr(Signal* signal)
LogFileRecordPtr
nextLogFilePtr
;
LogFileRecordPtr
nextLogFilePtr
;
LogPageRecordPtr
tmpLogPagePtr
;
LogPageRecordPtr
tmpLogPagePtr
;
Uint32
logWord
;
Uint32
logWord
;
Uint32
line
;
const
char
*
crash_msg
=
0
;
jamEntry
();
jamEntry
();
logPartPtr
.
i
=
signal
->
theData
[
0
];
logPartPtr
.
i
=
signal
->
theData
[
0
];
...
@@ -14916,8 +14918,14 @@ void Dblqh::execSr(Signal* signal)
...
@@ -14916,8 +14918,14 @@ void Dblqh::execSr(Signal* signal)
/* PLACE THAN IN THE FIRST PAGE OF A NEW FILE IN THE FIRST POSITION AFTER THE*/
/* PLACE THAN IN THE FIRST PAGE OF A NEW FILE IN THE FIRST POSITION AFTER THE*/
/* HEADER. */
/* HEADER. */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
ndbrequire
(
logPagePtr
.
p
->
logPageWord
[
ZCURR_PAGE_INDEX
]
==
if
(
unlikely
(
logPagePtr
.
p
->
logPageWord
[
ZCURR_PAGE_INDEX
]
!=
(
ZPAGE_HEADER_SIZE
+
ZPOS_NO_FD
));
(
ZPAGE_HEADER_SIZE
+
ZPOS_NO_FD
)))
{
line
=
__LINE__
;
logWord
=
logPagePtr
.
p
->
logPageWord
[
ZCURR_PAGE_INDEX
];
crash_msg
=
"ZFD_TYPE at incorrect position!"
;
goto
crash
;
}
{
{
Uint32
noFdDescriptors
=
Uint32
noFdDescriptors
=
logPagePtr
.
p
->
logPageWord
[
ZPAGE_HEADER_SIZE
+
ZPOS_NO_FD
];
logPagePtr
.
p
->
logPageWord
[
ZPAGE_HEADER_SIZE
+
ZPOS_NO_FD
];
...
@@ -14954,19 +14962,10 @@ void Dblqh::execSr(Signal* signal)
...
@@ -14954,19 +14962,10 @@ void Dblqh::execSr(Signal* signal)
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* SEND A SIGNAL TO THE SIGNAL LOG AND THEN CRASH THE SYSTEM. */
/* SEND A SIGNAL TO THE SIGNAL LOG AND THEN CRASH THE SYSTEM. */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
signal
->
theData
[
0
]
=
RNIL
;
line
=
__LINE__
;
signal
->
theData
[
1
]
=
logPartPtr
.
i
;
logWord
=
ZNEXT_MBYTE_TYPE
;
Uint32
tmp
=
logFilePtr
.
p
->
fileName
[
3
];
crash_msg
=
"end of log wo/ having found last GCI"
;
tmp
=
(
tmp
>>
8
)
&
0xff
;
// To get the Directory, DXX.
goto
crash
;
signal
->
theData
[
2
]
=
tmp
;
signal
->
theData
[
3
]
=
logFilePtr
.
p
->
fileNo
;
signal
->
theData
[
4
]
=
logFilePtr
.
p
->
currentFilepage
;
signal
->
theData
[
5
]
=
logFilePtr
.
p
->
currentMbyte
;
signal
->
theData
[
6
]
=
logPagePtr
.
p
->
logPageWord
[
ZCURR_PAGE_INDEX
];
signal
->
theData
[
7
]
=
~
0
;
signal
->
theData
[
8
]
=
__LINE__
;
sendSignal
(
cownref
,
GSN_DEBUG_SIG
,
signal
,
9
,
JBA
);
return
;
}
//if
}
//if
}
//if
}
//if
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
...
@@ -15021,6 +15020,19 @@ void Dblqh::execSr(Signal* signal)
...
@@ -15021,6 +15020,19 @@ void Dblqh::execSr(Signal* signal)
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* SEND A SIGNAL TO THE SIGNAL LOG AND THEN CRASH THE SYSTEM. */
/* SEND A SIGNAL TO THE SIGNAL LOG AND THEN CRASH THE SYSTEM. */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
line
=
__LINE__
;
crash_msg
=
"Invalid logword"
;
goto
crash
;
break
;
}
//switch
/*---------------------------------------------------------------------------*/
// We continue to execute log records until we find a proper one to execute or
// that we reach a new page.
/*---------------------------------------------------------------------------*/
}
while
(
1
);
return
;
crash:
signal
->
theData
[
0
]
=
RNIL
;
signal
->
theData
[
0
]
=
RNIL
;
signal
->
theData
[
1
]
=
logPartPtr
.
i
;
signal
->
theData
[
1
]
=
logPartPtr
.
i
;
Uint32
tmp
=
logFilePtr
.
p
->
fileName
[
3
];
Uint32
tmp
=
logFilePtr
.
p
->
fileName
[
3
];
...
@@ -15031,16 +15043,22 @@ void Dblqh::execSr(Signal* signal)
...
@@ -15031,16 +15043,22 @@ void Dblqh::execSr(Signal* signal)
signal
->
theData
[
5
]
=
logFilePtr
.
p
->
currentFilepage
;
signal
->
theData
[
5
]
=
logFilePtr
.
p
->
currentFilepage
;
signal
->
theData
[
6
]
=
logPagePtr
.
p
->
logPageWord
[
ZCURR_PAGE_INDEX
];
signal
->
theData
[
6
]
=
logPagePtr
.
p
->
logPageWord
[
ZCURR_PAGE_INDEX
];
signal
->
theData
[
7
]
=
logWord
;
signal
->
theData
[
7
]
=
logWord
;
signal
->
theData
[
8
]
=
__LINE__
;
signal
->
theData
[
8
]
=
line
;
sendSignal
(
cownref
,
GSN_DEBUG_SIG
,
signal
,
9
,
JBA
);
return
;
char
buf
[
255
];
break
;
BaseString
::
snprintf
(
buf
,
sizeof
(
buf
),
}
//switch
"Error while reading REDO log. from %d
\n
"
/*---------------------------------------------------------------------------*/
"D=%d, F=%d Mb=%d FP=%d W1=%d W2=%d : %s"
,
// We continue to execute log records until we find a proper one to execute or
signal
->
theData
[
8
],
// that we reach a new page.
signal
->
theData
[
2
],
/*---------------------------------------------------------------------------*/
signal
->
theData
[
3
],
}
while
(
1
);
signal
->
theData
[
4
],
signal
->
theData
[
5
],
signal
->
theData
[
6
],
signal
->
theData
[
7
],
crash_msg
?
crash_msg
:
""
);
progError
(
__LINE__
,
NDBD_EXIT_SR_REDOLOG
,
buf
);
}
//Dblqh::execSr()
}
//Dblqh::execSr()
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
...
@@ -15056,8 +15074,8 @@ void Dblqh::execDEBUG_SIG(Signal* signal)
...
@@ -15056,8 +15074,8 @@ void Dblqh::execDEBUG_SIG(Signal* signal)
UintR
tdebug
;
UintR
tdebug
;
jamEntry
();
jamEntry
();
logPagePtr
.
i
=
signal
->
theData
[
0
];
//
logPagePtr.i = signal->theData[0];
tdebug
=
logPagePtr
.
p
->
logPageWord
[
0
];
//
tdebug = logPagePtr.p->logPageWord[0];
char
buf
[
100
];
char
buf
[
100
];
BaseString
::
snprintf
(
buf
,
100
,
BaseString
::
snprintf
(
buf
,
100
,
...
...
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