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
834c862f
Commit
834c862f
authored
Aug 10, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge bug 4586
parent
f87ef7f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+6
-7
No files found.
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
View file @
834c862f
...
@@ -6361,7 +6361,6 @@ void Dbacc::execEXPANDCHECK2(Signal* signal)
...
@@ -6361,7 +6361,6 @@ void Dbacc::execEXPANDCHECK2(Signal* signal)
jam
();
jam
();
allocOverflowPage
(
signal
);
allocOverflowPage
(
signal
);
if
(
tresult
>
ZLIMIT_OF_ERROR
)
{
if
(
tresult
>
ZLIMIT_OF_ERROR
)
{
if
(
cfreepage
+
10
>=
cpagesize
)
{
jam
();
jam
();
/*--------------------------------------------------------------*/
/*--------------------------------------------------------------*/
/* WE COULD NOT ALLOCATE ANY OVERFLOW PAGE. THUS WE HAVE TO STOP*/
/* WE COULD NOT ALLOCATE ANY OVERFLOW PAGE. THUS WE HAVE TO STOP*/
...
@@ -6481,7 +6480,7 @@ void Dbacc::execEXPANDCHECK2(Signal* signal)
...
@@ -6481,7 +6480,7 @@ void Dbacc::execEXPANDCHECK2(Signal* signal)
endofexpLab
(
signal
);
endofexpLab
(
signal
);
return
;
return
;
}
//Dbacc::execEXPANDCHECK2()
}
//Dbacc::execEXPANDCHECK2()
void
Dbacc
::
endofexpLab
(
Signal
*
signal
)
void
Dbacc
::
endofexpLab
(
Signal
*
signal
)
{
{
fragrecptr
.
p
->
p
++
;
fragrecptr
.
p
->
p
++
;
...
@@ -6520,10 +6519,11 @@ void Dbacc::reenable_expand_after_redo_log_exection_complete(Signal* signal){
...
@@ -6520,10 +6519,11 @@ void Dbacc::reenable_expand_after_redo_log_exection_complete(Signal* signal){
ptrCheckGuard
(
tabptr
,
ctablesize
,
tabrec
);
ptrCheckGuard
(
tabptr
,
ctablesize
,
tabrec
);
ndbrequire
(
getrootfragmentrec
(
signal
,
rootfragrecptr
,
fragId
));
ndbrequire
(
getrootfragmentrec
(
signal
,
rootfragrecptr
,
fragId
));
#if 0
ndbout_c("reenable expand check for table %d fragment: %d",
ndbout_c("reenable expand check for table %d fragment: %d",
tabptr.i, fragId);
tabptr.i, fragId);
#endif
for
(
Uint32
i
=
0
;
i
<
2
;
i
++
)
{
for
(
Uint32
i
=
0
;
i
<
2
;
i
++
)
{
fragrecptr
.
i
=
rootfragrecptr
.
p
->
fragmentptr
[
i
];
fragrecptr
.
i
=
rootfragrecptr
.
p
->
fragmentptr
[
i
];
ptrCheckGuard
(
fragrecptr
,
cfragmentsize
,
fragmentrec
);
ptrCheckGuard
(
fragrecptr
,
cfragmentsize
,
fragmentrec
);
...
@@ -6949,9 +6949,9 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
...
@@ -6949,9 +6949,9 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
jamEntry
();
jamEntry
();
fragrecptr
.
i
=
signal
->
theData
[
0
];
fragrecptr
.
i
=
signal
->
theData
[
0
];
Uint32
oldFlag
=
signal
->
theData
[
3
];
Uint32
oldFlag
=
signal
->
theData
[
3
];
ptrCheckGuard
(
fragrecptr
,
cfragmentsize
,
fragmentrec
);
fragrecptr
.
p
->
expandFlag
=
oldFlag
;
fragrecptr
.
p
->
expandFlag
=
oldFlag
;
tresult
=
0
;
/* 0= FALSE,1= TRUE,> ZLIMIT_OF_ERROR =ERRORCODE */
tresult
=
0
;
/* 0= FALSE,1= TRUE,> ZLIMIT_OF_ERROR =ERRORCODE */
ptrCheckGuard
(
fragrecptr
,
cfragmentsize
,
fragmentrec
);
if
(
fragrecptr
.
p
->
slack
<=
fragrecptr
.
p
->
slackCheck
)
{
if
(
fragrecptr
.
p
->
slack
<=
fragrecptr
.
p
->
slackCheck
)
{
jam
();
jam
();
/* TIME FOR JOIN BUCKETS PROCESS */
/* TIME FOR JOIN BUCKETS PROCESS */
...
@@ -6994,7 +6994,6 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
...
@@ -6994,7 +6994,6 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
}
//if
}
//if
}
//if
}
//if
if
(
cfirstfreepage
==
RNIL
)
{
if
(
cfirstfreepage
==
RNIL
)
{
if
(
cfreepage
>=
cpagesize
)
{
if
(
cfreepage
>=
cpagesize
)
{
if
(
cfreepage
>=
cpagesize
)
{
jam
();
jam
();
/*--------------------------------------------------------------*/
/*--------------------------------------------------------------*/
...
@@ -7230,6 +7229,7 @@ void Dbacc::endofshrinkbucketLab(Signal* signal)
...
@@ -7230,6 +7229,7 @@ void Dbacc::endofshrinkbucketLab(Signal* signal)
signal
->
theData
[
1
]
=
fragrecptr
.
p
->
p
;
signal
->
theData
[
1
]
=
fragrecptr
.
p
->
p
;
signal
->
theData
[
2
]
=
fragrecptr
.
p
->
maxp
;
signal
->
theData
[
2
]
=
fragrecptr
.
p
->
maxp
;
signal
->
theData
[
3
]
=
fragrecptr
.
p
->
expandFlag
;
signal
->
theData
[
3
]
=
fragrecptr
.
p
->
expandFlag
;
ndbrequire
(
fragrecptr
.
p
->
expandFlag
<
2
);
fragrecptr
.
p
->
expandFlag
=
2
;
fragrecptr
.
p
->
expandFlag
=
2
;
sendSignal
(
cownBlockref
,
GSN_SHRINKCHECK2
,
signal
,
4
,
JBB
);
sendSignal
(
cownBlockref
,
GSN_SHRINKCHECK2
,
signal
,
4
,
JBB
);
}
//if
}
//if
...
@@ -9255,7 +9255,6 @@ void Dbacc::initFragAdd(Signal* signal,
...
@@ -9255,7 +9255,6 @@ void Dbacc::initFragAdd(Signal* signal,
* Is later restored to 0 by LQH at end of REDO log execution
* Is later restored to 0 by LQH at end of REDO log execution
*/
*/
regFragPtr
.
p
->
expandFlag
=
(
getNodeState
().
getSystemRestartInProgress
()
?
1
:
0
);
regFragPtr
.
p
->
expandFlag
=
(
getNodeState
().
getSystemRestartInProgress
()
?
1
:
0
);
regFragPtr
.
p
->
p
=
0
;
regFragPtr
.
p
->
p
=
0
;
regFragPtr
.
p
->
maxp
=
(
1
<<
req
->
kValue
)
-
1
;
regFragPtr
.
p
->
maxp
=
(
1
<<
req
->
kValue
)
-
1
;
regFragPtr
.
p
->
minloadfactor
=
minLoadFactor
;
regFragPtr
.
p
->
minloadfactor
=
minLoadFactor
;
...
...
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