Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[NDB patch 5/5] BUG#28804 Dbtc::releaseAbortResources() send returnsignal when exists.

From: <stewart(at)flamingspork.com>
Date: Mon Jul 16 2007 - 01:35:59 EDT


On failing to seize space in saveINDXATTRINFO, we need to send a reply back to API that we've aborted the txn.

Previously we wouldn't send the reply, and the ultra-long timeout waiting for reply in NdbTransaction would be hit.

This enables "instant" rollback and application notification.

  • ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 1.110 vs edited ===== Index: ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
    • ndb-work.orig/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 2007-07-12 12:43:51.161095427 +1000 +++ ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 2007-07-12 12:43:54.941310849 +1000 @@ -11782,6 +11782,8 @@ bool Dbtc::saveINDXKEYINFO(Signal* signa ptrCheckGuard(apiConnectptr, capiConnectFilesize, apiConnectRecord); releaseIndexOperation(apiConnectptr.p, indexOp); terrorCode = 4000; + if(TcKeyReq::getExecuteFlag(indexOp->tcIndxReq.requestInfo)) + apiConnectptr.p->m_exec_flag= 1; abortErrorLab(signal); return false; }
--
Stewart Smith

-- 
MySQL Code Commits Mailing List
For list archives: 
http://lists.mysql.com/commits
To unsubscribe:    
http://lists.mysql.com/commits?unsub=lists@pantek.com
Received on Mon Jul 16 01:39:11 2007

This archive was generated by hypermail 2.1.8 : Thu Aug 02 2007 - 01:56:42 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library