ndb - bug#14935 : Correct error to TUX on node alloc fail. There is more bugs with db full.

This commit is contained in:
pekka@clam.ndb.mysql.com 2006-06-19 10:50:23 +02:00
parent c0850425e5
commit 1f7b86bf83

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;