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
e30e90fb
Commit
e30e90fb
authored
Aug 11, 2004
by
mronstrom@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix of a nasty bug, small but hard to find
Some small printout fixes
parent
5e4070af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
ndb/include/kernel/signaldata/ScanFrag.hpp
ndb/include/kernel/signaldata/ScanFrag.hpp
+1
-1
ndb/src/kernel/blocks/dbtc/Dbtc.hpp
ndb/src/kernel/blocks/dbtc/Dbtc.hpp
+11
-6
ndb/test/ndbapi/testScanPerf.cpp
ndb/test/ndbapi/testScanPerf.cpp
+10
-8
No files found.
ndb/include/kernel/signaldata/ScanFrag.hpp
View file @
e30e90fb
...
...
@@ -321,7 +321,7 @@ KeyInfo20::getScanNo(Uint32 scanInfo){
inline
Uint32
KeyInfo20
::
getScanOp
(
Uint32
scanInfo
){
return
(
scanInfo
>>
8
)
&
0x
1023
;
return
(
scanInfo
>>
8
)
&
0x
3FF
;
}
#endif
ndb/src/kernel/blocks/dbtc/Dbtc.hpp
View file @
e30e90fb
...
...
@@ -927,17 +927,22 @@ public:
UintR
distributionGroup
;
UintR
nextCacheRec
;
UintR
distributionKeySize
;
Uint16
scanNode
;
unsigned
scanTakeOverInd
:
1
;
unsigned
scanInfo
:
15
;
// 12 bits used currently
Uint32
scanInfo
;
//---------------------------------------------------
// Third
and fourth
16 byte cache line in second 64
// byte cache line.
Not used currently
.
// Third 16 byte cache line in second 64
// byte cache line.
Diverse use
.
//---------------------------------------------------
Uint32
scanNode
;
Uint32
scanTakeOverInd
;
UintR
firstKeybuf
;
/* POINTER THE LINKED LIST OF KEY BUFFERS */
UintR
lastKeybuf
;
/* VARIABLE POINTING TO THE LAST KEY BUFFER */
UintR
packedCacheVar
[
6
];
//---------------------------------------------------
// Fourth 16 byte cache line in second 64
// byte cache line. Not used currently.
//---------------------------------------------------
UintR
packedCacheVar
[
4
];
};
typedef
Ptr
<
CacheRecord
>
CacheRecordPtr
;
...
...
ndb/test/ndbapi/testScanPerf.cpp
View file @
e30e90fb
...
...
@@ -196,7 +196,6 @@ int
clear_table
(){
if
(
!
g_paramters
[
P_LOAD
].
value
)
return
0
;
int
rows
=
g_paramters
[
P_ROWS
].
value
;
UtilTransactions
utilTrans
(
*
g_table
);
...
...
@@ -215,8 +214,8 @@ void err(NdbError e){
int
run_scan
(){
int
iter
=
g_paramters
[
P_LOOPS
].
value
;
Uint64
start1
;
Uint64
sum1
=
0
;
NDB_TICKS
start1
,
stop
;
int
sum_time
=
0
;
Uint32
tot
=
g_paramters
[
P_ROWS
].
value
;
...
...
@@ -357,12 +356,15 @@ run_scan(){
pTrans
->
close
();
Uint64
stop
=
NdbTick_CurrentMillisecond
();
start1
=
(
stop
-
start1
);
sum1
+=
start1
;
stop
=
NdbTick_CurrentMillisecond
();
int
time_passed
=
(
int
)(
stop
-
start1
);
g_err
.
println
(
"Time: %d ms = %u rows/sec"
,
time_passed
,
(
1000
*
tot
)
/
time_passed
);
sum_time
+=
time_passed
;
}
sum
1
/=
iter
;
sum
_time
=
sum_time
/
iter
;
g_err
.
println
(
"Avg time: %Ldms = %d rows/sec"
,
sum1
,
(
1000
*
tot
)
/
sum1
);
g_err
.
println
(
"Avg time: %d ms = %u rows/sec"
,
sum_time
,
(
1000
*
tot
)
/
sum_time
);
return
0
;
}
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