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
f87ef7f9
Commit
f87ef7f9
authored
Aug 10, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cset exclude: joreland@mysql.com|ChangeSet|20040805155331|12859
parent
1a04ae1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+20
-19
No files found.
ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
View file @
f87ef7f9
...
...
@@ -6357,26 +6357,26 @@ void Dbacc::execEXPANDCHECK2(Signal* signal)
/*--------------------------------------------------------------*/
return
;
}
//if
if
(
cfirstfreepage
==
RNIL
)
{
if
(
fragrecptr
.
p
->
firstOverflowRec
==
RNIL
)
{
jam
();
allocOverflowPage
(
signal
);
if
(
tresult
>
ZLIMIT_OF_ERROR
)
{
if
(
cfreepage
+
10
>=
cpagesize
)
{
jam
();
/*--------------------------------------------------------------*/
/* WE HAVE TO STOP THE EXPAND PROCESS SINCE THERE ARE NO FREE */
/* PAGES. THIS MEANS THAT WE COULD BE FORCED TO CRASH SINCE WE */
/* CANNOT COMPLETE THE EXPAND. TO AVOID THE CRASH WE EXIT HERE. */
/* WE COULD NOT ALLOCATE ANY OVERFLOW PAGE. THUS WE HAVE TO STOP*/
/* THE EXPAND SINCE WE CANNOT GUARANTEE ITS COMPLETION. */
/*--------------------------------------------------------------*/
return
;
}
//if
}
//if
if
(
fragrecptr
.
p
->
firstOverflowRec
==
RNIL
)
{
jam
();
allocOverflowPage
(
signal
);
if
(
tresult
>
ZLIMIT_OF_ERROR
)
{
if
(
cfirstfreepage
==
RNIL
)
{
if
(
cfreepage
>=
cpagesize
)
{
jam
();
/*--------------------------------------------------------------*/
/* WE COULD NOT ALLOCATE ANY OVERFLOW PAGE. THUS WE HAVE TO STOP*/
/* THE EXPAND SINCE WE CANNOT GUARANTEE ITS COMPLETION. */
/* WE HAVE TO STOP THE EXPAND PROCESS SINCE THERE ARE NO FREE */
/* PAGES. THIS MEANS THAT WE COULD BE FORCED TO CRASH SINCE WE */
/* CANNOT COMPLETE THE EXPAND. TO AVOID THE CRASH WE EXIT HERE. */
/*--------------------------------------------------------------*/
return
;
}
//if
...
...
@@ -6985,7 +6985,16 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
}
//if
}
//if
}
//if
if
(
fragrecptr
.
p
->
firstOverflowRec
==
RNIL
)
{
jam
();
allocOverflowPage
(
signal
);
if
(
tresult
>
ZLIMIT_OF_ERROR
)
{
jam
();
return
;
}
//if
}
//if
if
(
cfirstfreepage
==
RNIL
)
{
if
(
cfreepage
>=
cpagesize
)
{
if
(
cfreepage
>=
cpagesize
)
{
jam
();
/*--------------------------------------------------------------*/
...
...
@@ -6996,14 +7005,6 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
return
;
}
//if
}
//if
if
(
fragrecptr
.
p
->
firstOverflowRec
==
RNIL
)
{
jam
();
allocOverflowPage
(
signal
);
if
(
tresult
>
ZLIMIT_OF_ERROR
)
{
jam
();
return
;
}
//if
}
//if
if
(
checkScanShrink
(
signal
)
==
1
)
{
jam
();
/*--------------------------------------------------------------*/
...
...
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