summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-10-03 20:41:43 +0200
committerunknown <tomas@poseidon.ndb.mysql.com>2005-10-03 20:41:43 +0200
commita1f9ec01924c53c8933350e0a1ed37a22077b09e (patch)
tree70372efc4d6da7e1c738923ea6a66ab35c4fc8e3 /ndb
parentb1d8aa6787323d9482a8fe53ff9e229f0cc4735e (diff)
downloadmariadb-git-a1f9ec01924c53c8933350e0a1ed37a22077b09e.tar.gz
Bug #13197 NDB needs better error message for not enough memory.
- added 2 new error codes for out of data and index memory during SR + removed c++ style comments from c file ndb/include/mgmapi/ndbd_exit_codes.h: Bug #13197 NDB needs better error message for not enough memory. - added 2 new error codes for out of data and index memory during SR ndb/src/kernel/blocks/dbacc/DbaccMain.cpp: Bug #13197 NDB needs better error message for not enough memory. - added 2 new error codes for out of data and index memory during SR ndb/src/kernel/blocks/dbtup/DbtupSystemRestart.cpp: Bug #13197 NDB needs better error message for not enough memory. - added 2 new error codes for out of data and index memory during SR
Diffstat (limited to 'ndb')
-rw-r--r--ndb/include/mgmapi/ndbd_exit_codes.h4
-rw-r--r--ndb/src/kernel/blocks/dbacc/DbaccMain.cpp2
-rw-r--r--ndb/src/kernel/blocks/dbtup/DbtupSystemRestart.cpp2
-rw-r--r--ndb/src/kernel/error/ndbd_exit_codes.c16
4 files changed, 18 insertions, 6 deletions
diff --git a/ndb/include/mgmapi/ndbd_exit_codes.h b/ndb/include/mgmapi/ndbd_exit_codes.h
index 30bf1c4b3fe..afce6c16504 100644
--- a/ndb/include/mgmapi/ndbd_exit_codes.h
+++ b/ndb/include/mgmapi/ndbd_exit_codes.h
@@ -102,6 +102,10 @@ typedef ndbd_exit_classification_enum ndbd_exit_classification;
/* TC 6200-> */
/* DIH 6300-> */
#define NDBD_EXIT_MAX_CRASHED_REPLICAS 6300
+/* ACC 6600-> */
+#define NDBD_EXIT_SR_OUT_OF_INDEXMEMORY 6600
+/* TUP 6800-> */
+#define NDBD_EXIT_SR_OUT_OF_DATAMEMORY 6800
/* LQH 7200-> */
diff --git a/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp b/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
index df8627ae136..0501b866f53 100644
--- a/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+++ b/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
@@ -8158,7 +8158,7 @@ void Dbacc::srReadPagesLab(Signal* signal)
for (Uint32 i = 0; i < limitLoop; i++) {
jam();
seizePage(signal);
- ndbrequire(tresult <= ZLIMIT_OF_ERROR);
+ ndbrequireErr(tresult <= ZLIMIT_OF_ERROR, NDBD_EXIT_SR_OUT_OF_INDEXMEMORY);
fragrecptr.p->datapages[i] = spPageptr.i;
signal->theData[i + 6] = spPageptr.i;
}//for
diff --git a/ndb/src/kernel/blocks/dbtup/DbtupSystemRestart.cpp b/ndb/src/kernel/blocks/dbtup/DbtupSystemRestart.cpp
index 33d63e8ce49..35d1b75e573 100644
--- a/ndb/src/kernel/blocks/dbtup/DbtupSystemRestart.cpp
+++ b/ndb/src/kernel/blocks/dbtup/DbtupSystemRestart.cpp
@@ -187,7 +187,7 @@ Dbtup::rfrInitRestartInfoLab(Signal* signal, DiskBufferSegmentInfoPtr dbsiPtr)
const Uint32 pageCount = riPtr.p->sriNumDataPages - regFragPtr.p->noOfPages;
if(pageCount > 0){
Uint32 noAllocPages = allocFragPages(regFragPtr.p, pageCount);
- ndbrequire(noAllocPages == pageCount);
+ ndbrequireErr(noAllocPages == pageCount, NDBD_EXIT_SR_OUT_OF_DATAMEMORY);
}//if
ndbrequire(getNoOfPages(regFragPtr.p) == riPtr.p->sriNumDataPages);
diff --git a/ndb/src/kernel/error/ndbd_exit_codes.c b/ndb/src/kernel/error/ndbd_exit_codes.c
index 355cb756459..1dcd0a02d18 100644
--- a/ndb/src/kernel/error/ndbd_exit_codes.c
+++ b/ndb/src/kernel/error/ndbd_exit_codes.c
@@ -71,7 +71,7 @@ static const ErrStruct errArray[] =
{NDBD_EXIT_INVALID_CONFIG, XCE,
"Invalid Configuration fetched from Management Server" },
- // VM
+ /* VM */
{NDBD_EXIT_OUT_OF_LONG_SIGNAL_MEMORY, XCE,
"Signal lost, out of long signal memory"},
{NDBD_EXIT_WATCHDOG_TERMINATE, XIE, "WatchDog terminate"},
@@ -80,10 +80,18 @@ static const ErrStruct errArray[] =
{NDBD_EXIT_SIGNAL_LOST, XIE, "Signal lost (unknown reason)"},
{NDBD_EXIT_ILLEGAL_SIGNAL, XCE, "Illegal signal (version mismatch?)"},
- // DIH
+ /* DIH */
{NDBD_EXIT_MAX_CRASHED_REPLICAS, XFI, "To many crasched replicas"},
- // Ndbfs error messages
+ /* ACC */
+ {NDBD_EXIT_SR_OUT_OF_INDEXMEMORY, XCE,
+ "Out of index memory during system restart"},
+
+ /* TUP */
+ {NDBD_EXIT_SR_OUT_OF_DATAMEMORY, XCE,
+ "Out of data memory during system restart"},
+
+ /* Ndbfs error messages */
{NDBD_EXIT_AFS_NOPATH, XCE, "No file system path"},
{2802, XIE, "Channel is full"},
{2803, XIE, "No more threads"},
@@ -102,7 +110,7 @@ static const ErrStruct errArray[] =
{NDBD_EXIT_AFS_NO_SUCH_FILE , XFI, "File not found"},
{NDBD_EXIT_AFS_READ_UNDERFLOW , XIE, "Read underflow"},
- // Sentinel
+ /* Sentinel */
{0, XUE, "No message slogan found"}
};