From: Date: March 23 2007 5:07pm Subject: bk commit into 5.0 tree (tomas:1.2398) BUG#25275 List-Archive: http://lists.mysql.com/commits/22795 X-Bug: 25275 Message-Id: <20070323160738.74652307340@whalegate.ndb.mysql.com> Below is the list of changes that have just been committed into a local 5.0 repository of tomas. When tomas does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-03-23 17:07:33+01:00, tomas@stripped +1 -0 Bug #25275 SINGLE USER MODE prevents ALTER on non-ndb tables for other mysqld nodes ndb/src/kernel/blocks/dbtc/DbtcMain.cpp@stripped, 2007-03-23 17:07:31+01:00, tomas@stripped +8 -2 abort on timeout if in single user mode # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: tomas # Host: whalegate.ndb.mysql.com # Root: /home/tomas/mysql-5.0-telco-gca-single-user --- 1.105/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 2007-03-23 13:51:55 +01:00 +++ 1.106/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 2007-03-23 17:07:31 +01:00 @@ -6246,6 +6246,7 @@ Uint32 api_timer= getApiConTimer(api_con_ptr); jam(); if (api_timer != 0) { + Uint32 error= ZTIME_OUT_ERROR; time_out_value= time_out_param + (api_con_ptr & mask_value); if (unlikely(old_mask_value)) // abort during single user mode { @@ -6259,12 +6260,16 @@ time_out_value= old_time_out_param + (api_con_ptr & old_mask_value); } + else + { + error= ZCLUSTER_IN_SINGLEUSER_MODE; + } } time_passed= tc_timer - api_timer; if (time_passed > time_out_value) { jam(); - timeOutFoundLab(signal, api_con_ptr, ZTIME_OUT_ERROR); + timeOutFoundLab(signal, api_con_ptr, error); api_con_ptr++; break; } @@ -6304,7 +6309,8 @@ << " code: " << errCode); switch (apiConnectptr.p->apiConnectstate) { case CS_STARTED: - if(apiConnectptr.p->lqhkeyreqrec == apiConnectptr.p->lqhkeyconfrec){ + if(apiConnectptr.p->lqhkeyreqrec == apiConnectptr.p->lqhkeyconfrec && + errCode != ZCLUSTER_IN_SINGLEUSER_MODE){ jam(); /* We are waiting for application to continue the transaction. In this