summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2005-03-02 11:47:09 +0100
committerunknown <joerg@mysql.com>2005-03-02 11:47:09 +0100
commitff7d3c3de5125b9582e6d2311f86605d2aefe9a5 (patch)
treeb0224727d8e79c08b17f00bcc5fed5b2e29793ad /ndb
parentc4409a7cbf9b43ed450340ba9dd6a33f821df5f2 (diff)
downloadmariadb-git-ff7d3c3de5125b9582e6d2311f86605d2aefe9a5.tar.gz
Variable 'k' declared at both loop and function level caused compiler failures -
use function-wide declaration also for loop body. ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Get rid of a duplicate declaration ('Uint32 k;' at function start) that caused compiler failures on 'octane2' (both 32 and 64 bit) and a compiler crash on 'ds20'. It would be better not to use those variable declarations with a loop scope, they have caused compile problems again and again.
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/kernel/blocks/dbdict/Dbdict.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndb/src/kernel/blocks/dbdict/Dbdict.cpp b/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
index 5db0cd7af1b..78209c3affa 100644
--- a/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+++ b/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
@@ -6443,7 +6443,7 @@ Dbdict::createIndex_toCreateTable(Signal* signal, OpCreateIndexPtr opPtr)
// write index key attributes
AttributeRecordPtr aRecPtr;
c_attributeRecordPool.getPtr(aRecPtr, tablePtr.p->firstAttribute);
- for (unsigned k = 0; k < opPtr.p->m_attrList.sz; k++) {
+ for (k = 0; k < opPtr.p->m_attrList.sz; k++) {
// insert the attributes in the order decided above in attrid_map
// k is new order, current_id is in previous order
// ToDo: make sure "current_id" is stored with the table and