List:Internals« Previous MessageNext Message »
From:pekka Date:March 28 2005 9:51am
Subject:bk commit into 4.1 tree (pekka:1.2151)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of pekka. When pekka 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.2151 05/03/28 11:51:31 pekka@stripped +2 -0
  ndb - make printSchemaFile available (compile manually)

  ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp
    1.6 05/03/28 11:48:35 pekka@stripped +15 -0
    compile manually

  BitKeeper/deleted/.del-Makefile~b03e75f2bff8d72
    1.2 05/03/27 14:47:12 pekka@stripped +0 -0
    Delete: ndb/src/kernel/blocks/dbdict/printSchemafile/Makefile

  ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp
    1.5 05/03/27 14:46:56 pekka@stripped +0 -0
    Rename: ndb/src/kernel/blocks/dbdict/printSchemafile/printSchemafile.cpp -> ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp

# 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:	pekka
# Host:	clam.ndb.mysql.com
# Root:	/export/space/pekka/ndb/version/my41

--- 1.4/ndb/src/kernel/blocks/dbdict/printSchemafile/printSchemafile.cpp	2004-05-12 06:26:51 +02:00
+++ 1.6/ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp	2005-03-28 11:48:35 +02:00
@@ -1,3 +1,11 @@
+#if 0
+make -f Makefile -f - printSchemaFile <<'_eof_'
+printSchemaFile: printSchemaFile.cpp
+	$(CXXCOMPILE) -o $@ $@.cpp -L../../../common/util/.libs -lgeneral
+_eof_
+exit $?
+#endif
+
 /* Copyright (C) 2003 MySQL AB
 
    This program is free software; you can redistribute it and/or modify
@@ -92,6 +100,13 @@
   }
   
   print(filename, (SchemaFile *)&buf[0]);
+
+  Uint32 chk = 0, i;
+  for (i = 0; i < bytes/4; i++)
+    chk ^= buf[i];
+  if (chk != 0)
+    ndbout << "Invalid checksum!" << endl;
+
   delete [] buf;
   return 0;
 }
Thread
bk commit into 4.1 tree (pekka:1.2151)pekka28 Mar