Below is the list of changes that have just been committed into a local
5.1 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
1.2445 07/02/21 11:41:22 tomas@stripped +5 -0
Bug #26490 duplicate cluster error code
- fixed error code
- added test program run in mysql-test-run bk version
storage/ndb/src/ndbapi/ndberror_check.c
1.1 07/02/21 11:41:13 tomas@stripped +38 -0
New BitKeeper file ``storage/ndb/src/ndbapi/ndberror_check.c''
storage/ndb/src/ndbapi/ndberror_check.c
1.0 07/02/21 11:41:13 tomas@stripped +0 -0
BitKeeper file /home/tomas/mysql-5.1-new-ndb/storage/ndb/src/ndbapi/ndberror_check.c
storage/ndb/src/ndbapi/ndberror.c
1.83 07/02/21 11:41:13 tomas@stripped +1 -1
Bug #26490 duplicate cluster error code
- fixed error code
storage/ndb/src/ndbapi/Makefile.am
1.19 07/02/21 11:41:13 tomas@stripped +9 -0
Bug #26490 duplicate cluster error code
- added test program for duplicate error messages
storage/ndb/include/kernel/signaldata/CreateFilegroup.hpp
1.5 07/02/21 11:41:13 tomas@stripped +1 -1
Bug #26490 duplicate cluster error code
- fixed error code
mysql-test/ndb/ndbcluster.sh
1.54 07/02/21 11:41:13 tomas@stripped +10 -1
Bug #26490 duplicate cluster error code
- added check for duplicate error in mysql-test run
# 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: poseidon.mysql.com
# Root: /home/tomas/mysql-5.1-new-ndb
--- 1.4/storage/ndb/include/kernel/signaldata/CreateFilegroup.hpp 2006-12-24 02:33:29
+07:00
+++ 1.5/storage/ndb/include/kernel/signaldata/CreateFilegroup.hpp 2007-02-21 11:41:13
+07:00
@@ -64,7 +64,7 @@ struct CreateFilegroupRef {
InvalidFormat = 740,
OutOfFilegroupRecords = 765,
InvalidExtentSize = 764,
- InvalidUndoBufferSize = 763,
+ InvalidUndoBufferSize = 779,
NoSuchLogfileGroup = 767,
InvalidFilegroupVersion = 768
};
--- 1.53/mysql-test/ndb/ndbcluster.sh 2007-02-14 15:30:51 +07:00
+++ 1.54/mysql-test/ndb/ndbcluster.sh 2007-02-21 11:41:13 +07:00
@@ -35,7 +35,8 @@ if [ -d ../sql ] ; then
exec_mgmtsrvr=$ndbtop/src/mgmsrv/ndb_mgmd
exec_waiter=$ndbtop/tools/ndb_waiter
exec_test=$ndbtop/tools/ndb_test_platform
- exec_mgmtclient=$ndbtop/src/mgmclient/ndb_mgm
+ exec_test_ndberror=
+ exec_test_ndberror=$ndbtop/src/ndbapi/ndberror_check
else
BINARY_DIST=1
if test -x "$BASEDIR/libexec/ndbd"
@@ -48,12 +49,20 @@ else
fi
exec_waiter=$BASEDIR/bin/ndb_waiter
exec_test=$BASEDIR/bin/ndb_test_platform
+ exec_test_ndberror=
exec_mgmtclient=$BASEDIR/bin/ndb_mgm
fi
if $exec_test ; then :; else
echo "ndb not correctly compiled to support this platform"
exit 1
+fi
+
+if [ $exec_test_ndberror ] ; then
+if $exec_test_ndberror ; then :; else
+ echo "please fix in ndberror.c"
+ exit 1
+fi
fi
pidfile=ndbcluster.pid
--- 1.82/storage/ndb/src/ndbapi/ndberror.c 2007-01-23 07:25:17 +07:00
+++ 1.83/storage/ndb/src/ndbapi/ndberror.c 2007-02-21 11:41:13 +07:00
@@ -367,7 +367,7 @@ ErrorBundle ErrorCodes[] = {
{ 771, HA_WRONG_CREATE_OPTION, AE, "Given NODEGROUP doesn't exist in this cluster" },
{ 772, HA_WRONG_CREATE_OPTION, IE, "Given fragmentType doesn't exist" },
{ 749, HA_WRONG_CREATE_OPTION, IE, "Primary Table in wrong state" },
- { 763, HA_WRONG_CREATE_OPTION, SE, "Invalid undo buffer size" },
+ { 779, HA_WRONG_CREATE_OPTION, SE, "Invalid undo buffer size" },
{ 764, HA_WRONG_CREATE_OPTION, SE, "Invalid extent size" },
{ 765, DMEC, SE, "Out of filegroup records" },
{ 750, IE, SE, "Invalid file type" },
--- 1.18/storage/ndb/src/ndbapi/Makefile.am 2006-12-31 07:06:42 +07:00
+++ 1.19/storage/ndb/src/ndbapi/Makefile.am 2007-02-21 11:41:13 +07:00
@@ -15,6 +15,10 @@
#SUBDIRS = signal-sender
+noinst_PROGRAMS = ndberror_check
+
+ndberror_check_SOURCES = ndberror_check.c
+
noinst_LTLIBRARIES = libndbapi.la
libndbapi_la_SOURCES = \
@@ -60,6 +64,11 @@ NDB_CXXFLAGS_RELEASE_LOC = -O2
include $(top_srcdir)/storage/ndb/config/common.mk.am
include $(top_srcdir)/storage/ndb/config/type_ndbapi.mk.am
+
+ndberror_check_LDFLAGS = \
+ $(top_builddir)/dbug/libdbug.a \
+ $(top_builddir)/mysys/libmysys.a \
+ $(top_builddir)/strings/libmystrings.a
# Don't update the files from bitkeeper
%::SCCS/s.%
--- New file ---
+++ storage/ndb/src/ndbapi/ndberror_check.c 07/02/21 11:41:13
/* Copyright (C) 2007 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include <stdio.h>
#include "ndberror.c"
int main()
{
int i, j, error = 0;
// check for duplicate error codes
for(i = 0; i < NbErrorCodes; i++)
{
for(j = i + 1; j < NbErrorCodes; j++)
{
if (ErrorCodes[i].code == ErrorCodes[j].code)
{
fprintf(stderr, "Duplicate error code %u\n", ErrorCodes[i].code);
error = 1;
}
}
}
if (error)
return -1;
return 0;
}
| Thread |
|---|
| • bk commit into 5.1 tree (tomas:1.2445) BUG#26490 | tomas | 21 Feb |