Commit 995d7ed1 authored by tomas@poseidon.ndb.mysql.com's avatar tomas@poseidon.ndb.mysql.com

Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new

into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new
parents 93db514d 529be8eb
...@@ -452,7 +452,7 @@ Dbtup::execBUILDINDXREQ(Signal* signal) ...@@ -452,7 +452,7 @@ Dbtup::execBUILDINDXREQ(Signal* signal)
} }
// set to first tuple position // set to first tuple position
const Uint32 firstTupleNo = ! buildPtr.p->m_build_vs ? 0 : 1; const Uint32 firstTupleNo = 0;
buildPtr.p->m_fragNo= 0; buildPtr.p->m_fragNo= 0;
buildPtr.p->m_pageId= 0; buildPtr.p->m_pageId= 0;
buildPtr.p->m_tupleNo= firstTupleNo; buildPtr.p->m_tupleNo= firstTupleNo;
......
...@@ -515,7 +515,8 @@ RestoreDataIterator::getNextTuple(int & res) ...@@ -515,7 +515,8 @@ RestoreDataIterator::getNextTuple(int & res)
const AttributeDesc * attr_desc = m_tuple.getDesc(attrId); const AttributeDesc * attr_desc = m_tuple.getDesc(attrId);
// just a reminder - remove when backwards compat implemented // just a reminder - remove when backwards compat implemented
if(false && attr_desc->m_column->getNullable()){ if(m_currentTable->backupVersion < MAKE_VERSION(5,1,3) &&
attr_desc->m_column->getNullable()){
const Uint32 ind = attr_desc->m_nullBitIndex; const Uint32 ind = attr_desc->m_nullBitIndex;
if(BitmaskImpl::get(m_currentTable->m_nullBitmaskSize, if(BitmaskImpl::get(m_currentTable->m_nullBitmaskSize,
buf_ptr,ind)){ buf_ptr,ind)){
...@@ -524,6 +525,11 @@ RestoreDataIterator::getNextTuple(int & res) ...@@ -524,6 +525,11 @@ RestoreDataIterator::getNextTuple(int & res)
continue; continue;
} }
} }
if (m_currentTable->backupVersion < MAKE_VERSION(5,1,3))
{
sz *= 4;
}
attr_data->null = false; attr_data->null = false;
attr_data->void_value = &data->Data[0]; attr_data->void_value = &data->Data[0];
...@@ -842,7 +848,7 @@ void TableS::createAttr(NdbDictionary::Column *column) ...@@ -842,7 +848,7 @@ void TableS::createAttr(NdbDictionary::Column *column)
} }
// just a reminder - does not solve backwards compat // just a reminder - does not solve backwards compat
if (backupVersion < MAKE_VERSION(5,1,0)) if (backupVersion < MAKE_VERSION(5,1,3))
{ {
d->m_nullBitIndex = m_noOfNullable; d->m_nullBitIndex = m_noOfNullable;
m_noOfNullable++; m_noOfNullable++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment