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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a8fa01de
Commit
a8fa01de
authored
Jun 17, 2004
by
pekka@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tux optim 8 - store complete AttributeDescriptor (prepare for next step)
parent
4d8e2ed7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
ndb/src/kernel/blocks/dbtux/Dbtux.hpp
ndb/src/kernel/blocks/dbtux/Dbtux.hpp
+3
-4
ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp
ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp
+1
-1
ndb/src/kernel/blocks/dbtux/DbtuxMeta.cpp
ndb/src/kernel/blocks/dbtux/DbtuxMeta.cpp
+1
-2
ndb/src/kernel/blocks/dbtux/Times.txt
ndb/src/kernel/blocks/dbtux/Times.txt
+4
-0
No files found.
ndb/src/kernel/blocks/dbtux/Dbtux.hpp
View file @
a8fa01de
...
...
@@ -318,10 +318,9 @@ private:
* Attribute metadata. Size must be multiple of word size.
*/
struct
DescAttr
{
unsigned
m_primaryAttrId
:
16
;
unsigned
m_typeId
:
8
;
unsigned
m_nullable
:
1
;
unsigned
pad1
:
7
;
Uint32
m_attrDesc
;
// standard AttributeDescriptor
Uint16
m_primaryAttrId
;
Uint16
m_typeId
;
};
static
const
unsigned
DescAttrSize
=
sizeof
(
DescAttr
)
>>
2
;
...
...
ndb/src/kernel/blocks/dbtux/DbtuxDebug.cpp
View file @
a8fa01de
...
...
@@ -264,9 +264,9 @@ NdbOut&
operator
<<
(
NdbOut
&
out
,
const
Dbtux
::
DescAttr
&
descAttr
)
{
out
<<
"[DescAttr "
<<
hex
<<
&
descAttr
;
out
<<
" [attrDesc "
<<
hex
<<
descAttr
.
m_attrDesc
;
out
<<
" [primaryAttrId "
<<
dec
<<
descAttr
.
m_primaryAttrId
<<
"]"
;
out
<<
" [typeId "
<<
dec
<<
descAttr
.
m_typeId
<<
"]"
;
out
<<
" [nullable "
<<
dec
<<
descAttr
.
m_nullable
<<
"]"
;
out
<<
"]"
;
return
out
;
}
...
...
ndb/src/kernel/blocks/dbtux/DbtuxMeta.cpp
View file @
a8fa01de
...
...
@@ -181,10 +181,9 @@ Dbtux::execTUX_ADD_ATTRREQ(Signal* signal)
// define the attribute
DescEnt
&
descEnt
=
getDescEnt
(
indexPtr
.
p
->
m_descPage
,
indexPtr
.
p
->
m_descOff
);
DescAttr
&
descAttr
=
descEnt
.
m_descAttr
[
attrId
];
descAttr
.
m_attrDesc
=
req
->
attrDescriptor
;
descAttr
.
m_primaryAttrId
=
req
->
primaryAttrId
;
descAttr
.
m_typeId
=
req
->
extTypeInfo
&
0xFF
;
descAttr
.
m_nullable
=
AttributeDescriptor
::
getNullable
(
req
->
attrDescriptor
);
descAttr
.
pad1
=
0
;
#ifdef VM_TRACE
if
(
debugFlags
&
DebugMeta
)
{
debugOut
<<
"Add frag "
<<
fragPtr
.
i
<<
" attr "
<<
attrId
<<
" "
<<
descAttr
<<
endl
;
...
...
ndb/src/kernel/blocks/dbtux/Times.txt
View file @
a8fa01de
...
...
@@ -37,4 +37,8 @@ optim 6 mc02/a 42 ms 70 ms 66 pct
optim 7 mc02/a 42 ms 69 ms 61 pct
mc02/b 52 ms 106 ms 101 pct
optim 8 mc02/a 42 ms 69 ms 62 pct
mc02/b 54 ms 104 ms 92 pct
vim: set et:
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