Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: <stewart(at)flamingspork.com>
Date: Mon Jul 02 2007 - 11:00:37 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-02 16:19:21.267103888 +1000 +++ ndb-work/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 2007-07-02 16:29:29.901788002 +1000 @@ -11775,6 +11775,7 @@ bool Dbtc::saveINDXKEYINFO(Signal* signa ptrCheckGuard(apiConnectptr, capiConnectFilesize, apiConnectRecord); releaseIndexOperation(apiConnectptr.p, indexOp); terrorCode = 4000; + 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 2 11:02:04 2007

This archive was generated by hypermail 2.1.8 : Mon Jul 02 2007 - 11:10:04 EDT


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