summaryrefslogtreecommitdiff
path: root/storage/ndb/test/ndbapi/flexScan.cpp
diff options
context:
space:
mode:
authorunknown <tnurnberg@sin.intern.azundris.com>2007-08-01 05:07:58 +0200
committerunknown <tnurnberg@sin.intern.azundris.com>2007-08-01 05:07:58 +0200
commitf61488c6a11b306ade136337075250727fc65c80 (patch)
tree60a6e8de89c3e1d4e5fa8b2e6fbdc833b7b3ec9d /storage/ndb/test/ndbapi/flexScan.cpp
parent866225919c303f36e83b6af10e3908bcb39bda62 (diff)
parentf5b95d0be141416c95a657d42ef39937d01c4c8e (diff)
downloadmariadb-git-f61488c6a11b306ade136337075250727fc65c80.tar.gz
Merge sin.intern.azundris.com:/home/tnurnberg/10776/50-10776
into sin.intern.azundris.com:/home/tnurnberg/10776/51-10776 include/mysql.h: Auto merged storage/ndb/src/mgmclient/Makefile.am: Auto merged storage/ndb/test/ndbapi/benchronja.cpp: Auto merged storage/ndb/test/ndbapi/flexAsynch.cpp: Auto merged storage/ndb/test/ndbapi/flexHammer.cpp: Auto merged storage/ndb/test/ndbapi/flexScan.cpp: Auto merged storage/ndb/test/ndbapi/flexTT.cpp: Auto merged storage/ndb/test/ndbapi/flexTimedAsynch.cpp: Auto merged storage/ndb/test/ndbapi/initronja.cpp: Auto merged storage/ndb/test/ndbapi/testOperations.cpp: Auto merged storage/ndb/test/ndbapi/testScanFilter.cpp: Auto merged storage/ndb/test/odbc/SQL99_test/SQL99_test.cpp: Auto merged configure.in: manual merge storage/ndb/src/common/util/File.cpp: manual merge storage/ndb/src/mgmsrv/Makefile.am: manual merge
Diffstat (limited to 'storage/ndb/test/ndbapi/flexScan.cpp')
-rw-r--r--storage/ndb/test/ndbapi/flexScan.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/storage/ndb/test/ndbapi/flexScan.cpp b/storage/ndb/test/ndbapi/flexScan.cpp
index e0b07250762..105dfeedfff 100644
--- a/storage/ndb/test/ndbapi/flexScan.cpp
+++ b/storage/ndb/test/ndbapi/flexScan.cpp
@@ -68,7 +68,14 @@
#define MAXSTRLEN 16
#define MAXATTR 64
#define MAXTABLES 64
-#define MAXTHREADS 256
+#define NDB_MAXTHREADS 256
+/*
+ NDB_MAXTHREADS used to be just MAXTHREADS, which collides with a
+ #define from <sys/thread.h> on AIX (IBM compiler). We explicitly
+ #undef it here lest someone use it by habit and get really funny
+ results. K&R says we may #undef non-existent symbols, so let's go.
+*/
+#undef MAXTHREADS
#define MAXATTRSIZE 64
enum StartType {
@@ -848,7 +855,7 @@ static int readArguments(int argc, const char** argv)
if (strcmp(argv[i], "-t") == 0) {
if (argv[i + 1] != NULL) {
tNoOfThreads = atoi(argv[i + 1]);
- if ((tNoOfThreads < 1) || (tNoOfThreads > MAXTHREADS)) {
+ if ((tNoOfThreads < 1) || (tNoOfThreads > NDB_MAXTHREADS)) {
retValue = -1;
} // if
} // if