Commit f87ef7f9 authored by joreland@mysql.com's avatar joreland@mysql.com

Cset exclude: joreland@mysql.com|ChangeSet|20040805155331|12859

parent 1a04ae1a
...@@ -6357,26 +6357,26 @@ void Dbacc::execEXPANDCHECK2(Signal* signal) ...@@ -6357,26 +6357,26 @@ void Dbacc::execEXPANDCHECK2(Signal* signal)
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
return; return;
}//if }//if
if (cfirstfreepage == RNIL) { if (fragrecptr.p->firstOverflowRec == RNIL) {
jam();
allocOverflowPage(signal);
if (tresult > ZLIMIT_OF_ERROR) {
if (cfreepage + 10 >= cpagesize) { if (cfreepage + 10 >= cpagesize) {
jam(); jam();
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
/* WE HAVE TO STOP THE EXPAND PROCESS SINCE THERE ARE NO FREE */ /* WE COULD NOT ALLOCATE ANY OVERFLOW PAGE. THUS WE HAVE TO STOP*/
/* PAGES. THIS MEANS THAT WE COULD BE FORCED TO CRASH SINCE WE */ /* THE EXPAND SINCE WE CANNOT GUARANTEE ITS COMPLETION. */
/* CANNOT COMPLETE THE EXPAND. TO AVOID THE CRASH WE EXIT HERE. */
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
return; return;
}//if }//if
}//if }//if
if (cfirstfreepage == RNIL) {
if (fragrecptr.p->firstOverflowRec == RNIL) { if (cfreepage >= cpagesize) {
jam();
allocOverflowPage(signal);
if (tresult > ZLIMIT_OF_ERROR) {
jam(); jam();
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
/* WE COULD NOT ALLOCATE ANY OVERFLOW PAGE. THUS WE HAVE TO STOP*/ /* WE HAVE TO STOP THE EXPAND PROCESS SINCE THERE ARE NO FREE */
/* THE EXPAND SINCE WE CANNOT GUARANTEE ITS COMPLETION. */ /* PAGES. THIS MEANS THAT WE COULD BE FORCED TO CRASH SINCE WE */
/* CANNOT COMPLETE THE EXPAND. TO AVOID THE CRASH WE EXIT HERE. */
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
return; return;
}//if }//if
...@@ -6985,7 +6985,16 @@ void Dbacc::execSHRINKCHECK2(Signal* signal) ...@@ -6985,7 +6985,16 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
}//if }//if
}//if }//if
}//if }//if
if (fragrecptr.p->firstOverflowRec == RNIL) {
jam();
allocOverflowPage(signal);
if (tresult > ZLIMIT_OF_ERROR) {
jam();
return;
}//if
}//if
if (cfirstfreepage == RNIL) { if (cfirstfreepage == RNIL) {
if (cfreepage >= cpagesize) {
if (cfreepage >= cpagesize) { if (cfreepage >= cpagesize) {
jam(); jam();
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
...@@ -6996,14 +7005,6 @@ void Dbacc::execSHRINKCHECK2(Signal* signal) ...@@ -6996,14 +7005,6 @@ void Dbacc::execSHRINKCHECK2(Signal* signal)
return; return;
}//if }//if
}//if }//if
if (fragrecptr.p->firstOverflowRec == RNIL) {
jam();
allocOverflowPage(signal);
if (tresult > ZLIMIT_OF_ERROR) {
jam();
return;
}//if
}//if
if (checkScanShrink(signal) == 1) { if (checkScanShrink(signal) == 1) {
jam(); jam();
/*--------------------------------------------------------------*/ /*--------------------------------------------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment