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
11234ecc
Commit
11234ecc
authored
Dec 15, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl2240 - ndb partitioning, bug fixes
parent
25c8705d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
ndb/src/common/debugger/signaldata/ScanTab.cpp
ndb/src/common/debugger/signaldata/ScanTab.cpp
+7
-3
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+2
-0
ndb/src/ndbapi/NdbScanOperation.cpp
ndb/src/ndbapi/NdbScanOperation.cpp
+2
-1
ndb/tools/select_count.cpp
ndb/tools/select_count.cpp
+5
-4
No files found.
ndb/src/common/debugger/signaldata/ScanTab.cpp
View file @
11234ecc
...
...
@@ -30,20 +30,24 @@ printSCANTABREQ(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiv
fprintf
(
output
,
" apiConnectPtr: H
\'
%.8x"
,
sig
->
apiConnectPtr
);
fprintf
(
output
,
" requestInfo: H
\'
%.8x:
\n
"
,
requestInfo
);
fprintf
(
output
,
" Parallellism: %u, Batch: %u LockMode: %u, Keyinfo: %u Holdlock: %u, RangeScan: %u ReadCommitted: %u
\n
"
,
fprintf
(
output
,
" Parallellism: %u, Batch: %u LockMode: %u, Keyinfo: %u Holdlock: %u, RangeScan: %u ReadCommitted: %u
\n
DistributionKeyFlag: %u
"
,
sig
->
getParallelism
(
requestInfo
),
sig
->
getScanBatch
(
requestInfo
),
sig
->
getLockMode
(
requestInfo
),
sig
->
getKeyinfoFlag
(
requestInfo
),
sig
->
getHoldLockFlag
(
requestInfo
),
sig
->
getRangeScanFlag
(
requestInfo
),
sig
->
getReadCommittedFlag
(
requestInfo
));
sig
->
getReadCommittedFlag
(
requestInfo
),
sig
->
getDistributionKeyFlag
(
requestInfo
));
if
(
sig
->
getDistributionKeyFlag
(
requestInfo
))
fprintf
(
output
,
" DKey: %u"
,
sig
->
distributionKey
);
Uint32
keyLen
=
(
sig
->
attrLenKeyLen
>>
16
);
Uint32
attrLen
=
(
sig
->
attrLenKeyLen
&
0xFFFF
);
fprintf
(
output
,
" attrLen: %d, keyLen: %d tableId: %d, tableSchemaVer: %d
\n
"
,
attrLen
,
keyLen
,
sig
->
tableId
,
sig
->
tableSchemaVersion
);
fprintf
(
output
,
" transId(1, 2): (H
\'
%.8x, H
\'
%.8x) storedProcId: H
\'
%.8x
\n
"
,
sig
->
transId1
,
sig
->
transId2
,
sig
->
storedProcId
);
fprintf
(
output
,
" batch_byte_size: %d, first_batch_size: %d
\n
"
,
...
...
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
11234ecc
...
...
@@ -8952,6 +8952,7 @@ void Dbtc::execDI_FCOUNTCONF(Signal* signal)
{
ptr
.
p
->
m_ops
=
0
;
ptr
.
p
->
m_totalLen
=
0
;
ptr
.
p
->
m_scan_frag_conf_status
=
1
;
ptr
.
p
->
scanFragState
=
ScanFragRec
::
QUEUED_FOR_DELIVERY
;
ptr
.
p
->
stopFragTimer
();
...
...
@@ -8959,6 +8960,7 @@ void Dbtc::execDI_FCOUNTCONF(Signal* signal)
list
.
next
(
ptr
);
list
.
remove
(
tmp
);
queued
.
add
(
tmp
);
scanptr
.
p
->
m_queued_count
++
;
}
}
//Dbtc::execDI_FCOUNTCONF()
...
...
ndb/src/ndbapi/NdbScanOperation.cpp
View file @
11234ecc
...
...
@@ -777,8 +777,9 @@ NdbScanOperation::doSendScan(int aProcessorId)
Uint32
tmp
=
req
->
requestInfo
;
ScanTabReq
::
setDistributionKeyFlag
(
tmp
,
theDistrKeyIndicator_
);
req
->
distributionKey
=
theDistributionKey
;
req
->
requestInfo
=
tmp
;
tSignal
->
setLength
(
ScanTabReq
::
StaticLength
+
theDistrKeyIndicator_
);
TransporterFacade
*
tp
=
TransporterFacade
::
instance
();
LinearSectionPtr
ptr
[
3
];
ptr
[
0
].
p
=
m_prepared_receivers
;
...
...
ndb/tools/select_count.cpp
View file @
11234ecc
...
...
@@ -30,7 +30,7 @@ static int
select_count
(
Ndb
*
pNdb
,
const
NdbDictionary
::
Table
*
pTab
,
int
parallelism
,
int
*
count_rows
,
UtilTransactions
::
ScanLock
lock
);
NdbOperation
::
LockMode
lock
);
static
const
char
*
opt_connect_str
=
0
;
static
const
char
*
_dbname
=
"TEST_DB"
;
...
...
@@ -116,7 +116,7 @@ int main(int argc, char** argv){
int
rows
=
0
;
if
(
select_count
(
&
MyNdb
,
pTab
,
_parallelism
,
&
rows
,
(
UtilTransactions
::
ScanLock
)
_lock
)
!=
0
){
(
NdbOperation
::
LockMode
)
_lock
)
!=
0
){
return
NDBT_ProgramExit
(
NDBT_FAILED
);
}
...
...
@@ -129,7 +129,7 @@ int
select_count
(
Ndb
*
pNdb
,
const
NdbDictionary
::
Table
*
pTab
,
int
parallelism
,
int
*
count_rows
,
UtilTransactions
::
ScanLock
lock
){
NdbOperation
::
LockMode
lock
){
int
retryAttempt
=
0
;
const
int
retryMax
=
100
;
...
...
@@ -180,8 +180,9 @@ select_count(Ndb* pNdb, const NdbDictionary::Table* pTab,
}
Uint64
tmp
;
Uint32
row_size
;
pOp
->
getValue
(
NdbDictionary
::
Column
::
ROW_COUNT
,
(
char
*
)
&
tmp
);
pOp
->
getValue
(
NdbDictionary
::
Column
::
ROW_SIZE
,
(
char
*
)
&
row_size
);
check
=
pTrans
->
execute
(
NoCommit
);
if
(
check
==
-
1
)
{
ERR
(
pTrans
->
getNdbError
());
...
...
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