diff options
author | unknown <pekka@mysql.com> | 2004-11-13 17:49:20 +0100 |
---|---|---|
committer | unknown <pekka@mysql.com> | 2004-11-13 17:49:20 +0100 |
commit | 03d6e2453b3a421a6ab97ec1abd84cc22c9fa158 (patch) | |
tree | fb9203768c9050b582b7aed5de72322c48978021 | |
parent | 7a7ee30cb5a26f8e0f2edb560be36e6219e6a4a8 (diff) | |
download | mariadb-git-03d6e2453b3a421a6ab97ec1abd84cc22c9fa158.tar.gz |
ndb: minor
ndb/test/ndbapi/testDict.cpp:
compile fix
-rw-r--r-- | ndb/test/ndbapi/testDict.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ndb/test/ndbapi/testDict.cpp b/ndb/test/ndbapi/testDict.cpp index b832cb7039b..712ab2e4d25 100644 --- a/ndb/test/ndbapi/testDict.cpp +++ b/ndb/test/ndbapi/testDict.cpp @@ -1509,8 +1509,8 @@ int runFailAddFragment(NDBT_Context* ctx, NDBT_Step* step){ (void)pDic->dropTable(tab.getName()); for (int l = 0; l < loops; l++) { - for (unsigned i = 0; i < tupcnt; i++) { - unsigned j = (l == 0 ? i : myRandom48(tupcnt)); + for (unsigned i1 = 0; i1 < tupcnt; i1++) { + unsigned j = (l == 0 ? i1 : myRandom48(tupcnt)); int errval = tuplst[j]; g_info << "insert error node=" << nodeId << " value=" << errval << endl; CHECK2(restarter.insertErrorInNode(nodeId, errval) == 0, @@ -1522,8 +1522,8 @@ int runFailAddFragment(NDBT_Context* ctx, NDBT_Step* step){ CHECK2(pDic->dropTable(tab.getName()) == 0, pDic->getNdbError()); } - for (unsigned i = 0; i < tuxcnt; i++) { - unsigned j = (l == 0 ? i : myRandom48(tuxcnt)); + for (unsigned i2 = 0; i2 < tuxcnt; i2++) { + unsigned j = (l == 0 ? i2 : myRandom48(tuxcnt)); int errval = tuxlst[j]; g_info << "insert error node=" << nodeId << " value=" << errval << endl; CHECK2(restarter.insertErrorInNode(nodeId, errval) == 0, |