Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9203d355
Commit
9203d355
authored
Jul 22, 2005
by
mronstrom@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error in constants
parent
b25cbdba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+11
-0
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
+7
-9
No files found.
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
9203d355
...
...
@@ -6220,6 +6220,17 @@ void Dbdih::execCREATE_FRAGMENTATION_REQ(Signal * signal)
noOfFragments
=
1
;
set_default_node_groups
(
signal
,
noOfFragments
);
break
;
case
DictTabInfo
:
:
DistrKeyHash
:
jam
();
case
DictTabInfo
:
:
DistrKeyLin
:
jam
();
if
(
noOfFragments
==
0
)
{
jam
();
noOfFragments
=
csystemnodes
;
set_default_node_groups
(
signal
,
noOfFragments
);
}
break
;
default:
jam
();
if
(
noOfFragments
==
0
)
...
...
storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
9203d355
...
...
@@ -510,20 +510,18 @@ NdbTableImpl::get_nodes(Uint32 hashValue, const Uint16 ** nodes) const
return
0
;
switch
(
m_fragmentType
)
{
case
AllNodesSmallTable
:
case
AllNodesMediumTable
:
case
AllNodesLargeTabl
e
:
case
SingleFragment
:
case
DistrKeyLin
:
case
NdbDictionary
:
:
Object
::
FragAllSmall
:
case
NdbDictionary
:
:
Object
::
FragAllMedium
:
case
NdbDictionary
:
:
Object
::
FragAllLarg
e
:
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment