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
This commit is contained in:
unknown 2006-06-19 10:50:23 +02:00
parent 9f8c532f0c
commit d3d3ba7a33

View File

@ -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;