List:Internals« Previous MessageNext Message »
From:jonas Date:August 25 2005 11:16am
Subject:bk commit into 4.1 tree (jonas:1.2384) BUG#12027
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of jonas. When jonas 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
  1.2384 05/08/25 13:16:29 jonas@eel.(none) +1 -0
  bug#12027 - ndb 
    When detecting corrupt schema file.
    Make sure to close it (as it will be opened later when rewriting a clean copy)

  ndb/src/kernel/blocks/dbdict/Dbdict.cpp
    1.38 05/08/25 13:16:26 jonas@eel.(none) +8 -2
    bug#12027 
      When detecting corrupt schema file.
      Make sure to close it (as it will be opened later when rewriting a clean copy)

# 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:	jonas
# Host:	eel.(none)
# Root:	/home/jonas/src/mysql-4.1

--- 1.37/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2005-08-18 14:02:19 +02:00
+++ 1.38/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2005-08-25 13:16:26 +02:00
@@ -369,6 +369,9 @@
     jam();
     closeWriteTableConf(signal, fsPtr);
     break;
+  case FsConnectRecord::FsConnectRecord::OPEN_READ_SCHEMA2:
+    openSchemaFile(signal, 1, fsPtr.i, false);
+    break;
   default:
     jamLine((fsPtr.p->fsState & 0xFFF));
     ndbrequire(false);
@@ -1012,10 +1015,13 @@
 void Dbdict::readSchemaRef(Signal* signal,
                            FsConnectRecordPtr fsPtr)
 {
+  /**
+   * First close corrupt file
+   */
   fsPtr.p->fsState = FsConnectRecord::OPEN_READ_SCHEMA2;
-  openSchemaFile(signal, 1, fsPtr.i, false);
+  closeFile(signal, fsPtr.p->filePtr, fsPtr.i);
   return;
-}//Dbdict::readSchemaRef()
+}
 
 void Dbdict::closeReadSchemaConf(Signal* signal,
                                  FsConnectRecordPtr fsPtr)
Thread
bk commit into 4.1 tree (jonas:1.2384) BUG#12027jonas25 Aug