List:Commits« Previous MessageNext Message »
From:tomas Date:May 30 2007 12:29pm
Subject:bk commit into 5.0 tree (tomas:1.2407) BUG#28770
View as plain text  
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-05-30 12:29:19+02:00, tomas@stripped +1 -0
  Bug #28770 file already opened error when corrupt schema file
  - make sure we close the first file, before opening the next

  ndb/src/kernel/blocks/dbdict/Dbdict.cpp@stripped, 2007-05-30 12:29:17+02:00,
tomas@stripped +7 -1
    Bug #28770 file already opened error when corrupt schema file
    - make sure we close the first file, before opening the next

# 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

--- 1.74/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2007-03-09 09:37:02 +01:00
+++ 1.75/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2007-05-30 12:29:17 +02:00
@@ -401,6 +401,9 @@
   case FsConnectRecord::OPEN_READ_SCHEMA2:
     openSchemaFile(signal, 1, fsPtr.i, false, false);
     break;
+  case FsConnectRecord::OPEN_READ_TAB_FILE2:
+    openTableFile(signal, 1, fsPtr.i, c_readTableRecord.tableId, false);
+    break;
   default:
     jamLine((fsPtr.p->fsState & 0xFFF));
     ndbrequire(false);
@@ -780,8 +783,11 @@
 void Dbdict::readTableRef(Signal* signal,
                           FsConnectRecordPtr fsPtr)
 {
+  /**
+   * First close corrupt file
+   */
   fsPtr.p->fsState = FsConnectRecord::OPEN_READ_TAB_FILE2;
-  openTableFile(signal, 1, fsPtr.i, c_readTableRecord.tableId, false);
+  closeFile(signal, fsPtr.p->filePtr, fsPtr.i);
   return;
 }//Dbdict::readTableRef()
 
Thread
bk commit into 5.0 tree (tomas:1.2407) BUG#28770tomas30 May