From 93ce96cab9cfc726ddf283b3cc95705cb6ae1bd8 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 19 Jun 2006 10:50:23 +0200 Subject: ndb - bug#14935 : Correct error to TUX on node alloc fail. There is more bugs with db full. storage/ndb/src/kernel/blocks/dbtup/DbtupIndex.cpp: set ZMEM_NOMEM_ERROR correctly when TUX fails to alloc node from TUP --- storage/ndb/src/kernel/blocks/dbtup/DbtupIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage') diff --git a/storage/ndb/src/kernel/blocks/dbtup/DbtupIndex.cpp b/storage/ndb/src/kernel/blocks/dbtup/DbtupIndex.cpp index b51cc02a703..878fe77d998 100644 --- a/storage/ndb/src/kernel/blocks/dbtup/DbtupIndex.cpp +++ b/storage/ndb/src/kernel/blocks/dbtup/DbtupIndex.cpp @@ -63,7 +63,7 @@ Dbtup::tuxAllocNode(Signal* signal, if ((ptr= alloc_fix_rec(fragPtr.p, tablePtr.p, &key, &frag_page_id)) == 0) { ljam(); - ndbrequire(terrorCode != 0); + terrorCode = ZMEM_NOMEM_ERROR; // caller sets error return terrorCode; } pageId= key.m_page_no; -- cgit v1.2.1