mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
bug#6995 - ndb
don't store keys in normalized form instead save everythings as normal attributes ndb/src/kernel/blocks/backup/Backup.cpp: Remove special handling of keys, that was build to support tables where keys was only stored in ACC ndb/src/kernel/blocks/backup/Backup.hpp: Remove special handling of keys, that was build to support tables where keys was only stored in ACC ndb/src/kernel/blocks/backup/BackupInit.cpp: Remove special handling of keys, that was build to support tables where keys was only stored in ACC ndb/tools/restore/Restore.cpp: Remove special handling of keys, that was build to support tables where keys was only stored in ACC ndb/tools/restore/Restore.hpp: Remove special handling of keys, that was build to support tables where keys was only stored in ACC
This commit is contained in:
@ -334,27 +334,6 @@ RestoreDataIterator::getNextTuple(int & res)
|
||||
Uint32 *buf_ptr = (Uint32*)_buf_ptr, *ptr = buf_ptr;
|
||||
ptr += m_currentTable->m_nullBitmaskSize;
|
||||
Uint32 i;
|
||||
for(i= 0; i < m_currentTable->m_fixedKeys.size(); i++){
|
||||
assert(ptr < buf_ptr + dataLength);
|
||||
|
||||
const Uint32 attrId = m_currentTable->m_fixedKeys[i]->attrId;
|
||||
|
||||
AttributeData * attr_data = m_tuple.getData(attrId);
|
||||
const AttributeDesc * attr_desc = m_tuple.getDesc(attrId);
|
||||
|
||||
const Uint32 sz = attr_desc->getSizeInWords();
|
||||
|
||||
attr_data->null = false;
|
||||
attr_data->void_value = ptr;
|
||||
|
||||
if(!Twiddle(attr_desc, attr_data))
|
||||
{
|
||||
res = -1;
|
||||
return NULL;
|
||||
}
|
||||
ptr += sz;
|
||||
}
|
||||
|
||||
for(i = 0; i < m_currentTable->m_fixedAttribs.size(); i++){
|
||||
assert(ptr < buf_ptr + dataLength);
|
||||
|
||||
@ -699,12 +678,6 @@ void TableS::createAttr(NdbDictionary::Column *column)
|
||||
if (d->m_column->getAutoIncrement())
|
||||
m_auto_val_id= d->attrId;
|
||||
|
||||
if(d->m_column->getPrimaryKey() /* && not variable */)
|
||||
{
|
||||
m_fixedKeys.push_back(d);
|
||||
return;
|
||||
}
|
||||
|
||||
if(!d->m_column->getNullable())
|
||||
{
|
||||
m_fixedAttribs.push_back(d);
|
||||
|
Reference in New Issue
Block a user