mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge mskold@build.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/local/home/marty/MySQL/test/mysql-4.1 ndb/include/mgmcommon/ConfigRetriever.hpp: Auto merged ndb/src/common/debugger/signaldata/ScanTab.cpp: Auto merged ndb/src/common/mgmcommon/ConfigRetriever.cpp: Auto merged ndb/src/common/mgmcommon/LocalConfig.cpp: Auto merged ndb/src/ndbapi/Ndb.cpp: Auto merged ndb/src/ndbapi/NdbDictionary.cpp: Auto merged ndb/src/ndbapi/NdbDictionaryImpl.cpp: Auto merged ndb/src/ndbapi/Ndbif.cpp: Auto merged ndb/src/ndbapi/Ndbinit.cpp: Auto merged sql/ha_ndbcluster.cc: Auto merged sql/handler.cc: Auto merged
This commit is contained in:
@@ -383,7 +383,7 @@ void
|
||||
NdbTableImpl::buildColumnHash(){
|
||||
const Uint32 size = m_columns.size();
|
||||
|
||||
size_t i;
|
||||
int i;
|
||||
for(i = 31; i >= 0; i--){
|
||||
if(((1 << i) & size) != 0){
|
||||
m_columnHashMask = (1 << (i + 1)) - 1;
|
||||
@@ -393,7 +393,7 @@ NdbTableImpl::buildColumnHash(){
|
||||
|
||||
Vector<Uint32> hashValues;
|
||||
Vector<Vector<Uint32> > chains; chains.fill(size, hashValues);
|
||||
for(i = 0; i<size; i++){
|
||||
for(i = 0; i< (int) size; i++){
|
||||
Uint32 hv = Hash(m_columns[i]->getName()) & 0xFFFE;
|
||||
Uint32 bucket = hv & m_columnHashMask;
|
||||
bucket = (bucket < size ? bucket : bucket - size);
|
||||
@@ -407,7 +407,7 @@ NdbTableImpl::buildColumnHash(){
|
||||
m_columnHash.fill((unsigned)size-1, tmp); // Default no chaining
|
||||
|
||||
Uint32 pos = 0; // In overflow vector
|
||||
for(i = 0; i<size; i++){
|
||||
for(i = 0; i< (int) size; i++){
|
||||
Uint32 sz = chains[i].size();
|
||||
if(sz == 1){
|
||||
Uint32 col = chains[i][0];
|
||||
@@ -1389,7 +1389,7 @@ NdbDictInterface::createOrAlterTable(Ndb & ndb,
|
||||
internalName);
|
||||
|
||||
bool haveAutoIncrement = false;
|
||||
Uint64 autoIncrementValue;
|
||||
Uint64 autoIncrementValue = 0;
|
||||
for(i = 0; i<sz; i++){
|
||||
const NdbColumnImpl * col = impl.m_columns[i];
|
||||
if(col == 0)
|
||||
|
Reference in New Issue
Block a user