1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-19 19:03:26 +03:00

Fixed error in constants

This commit is contained in:
mronstrom@mysql.com
2005-07-22 10:57:36 +02:00
parent b25cbdba14
commit 9203d3559d
2 changed files with 18 additions and 9 deletions

View File

@@ -510,20 +510,18 @@ NdbTableImpl::get_nodes(Uint32 hashValue, const Uint16 ** nodes) const
return 0;
switch (m_fragmentType)
{
case AllNodesSmallTable:
case AllNodesMediumTable:
case AllNodesLargeTable:
case SingleFragment:
case DistrKeyLin:
case NdbDictionary::Object::FragAllSmall:
case NdbDictionary::Object::FragAllMedium:
case NdbDictionary::Object::FragAllLarge:
case NdbDictionary::Object::FragSingle:
case NdbDictionary::Object::DistrKeyLin:
{
Uint32 fragmentId = hashValue & m_hashValueMask;
fragmentId = hashValue & m_hashValueMask;
if(fragmentId < m_hashpointerValue)
{
fragmentId = hashValue & ((m_hashValueMask << 1) + 1);
}
break;
}
case DistrKeyHash:
case NdbDictionary::Object::DistrKeyHash:
{
fragmentId = hashValue % m_fragmentCount;
break;