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
ce7446e1
Commit
ce7446e1
authored
Apr 26, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/50-work
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0
parents
55ce5e30
e36d11b9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
24 deletions
+39
-24
ndb/src/kernel/blocks/backup/Backup.cpp
ndb/src/kernel/blocks/backup/Backup.cpp
+3
-4
ndb/src/kernel/blocks/dbtc/Dbtc.hpp
ndb/src/kernel/blocks/dbtc/Dbtc.hpp
+3
-2
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+25
-12
ndb/src/ndbapi/Ndbif.cpp
ndb/src/ndbapi/Ndbif.cpp
+2
-2
ndb/src/ndbapi/TransporterFacade.cpp
ndb/src/ndbapi/TransporterFacade.cpp
+4
-3
ndb/src/ndbapi/TransporterFacade.hpp
ndb/src/ndbapi/TransporterFacade.hpp
+2
-1
No files found.
ndb/src/kernel/blocks/backup/Backup.cpp
View file @
ce7446e1
...
@@ -88,12 +88,13 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
...
@@ -88,12 +88,13 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
c_nodePool
.
setSize
(
MAX_NDB_NODES
);
c_nodePool
.
setSize
(
MAX_NDB_NODES
);
Uint32
noBackups
=
0
,
noTables
=
0
,
noAttribs
=
0
;
Uint32
noBackups
=
0
,
noTables
=
0
,
noAttribs
=
0
,
noFrags
=
0
;
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_DISCLESS
,
&
m_diskless
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_DISCLESS
,
&
m_diskless
));
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_PARALLEL_BACKUPS
,
&
noBackups
);
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_PARALLEL_BACKUPS
,
&
noBackups
);
// ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DB_NO_TABLES, &noTables));
// ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DB_NO_TABLES, &noTables));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DICT_TABLE
,
&
noTables
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DICT_TABLE
,
&
noTables
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_NO_ATTRIBUTES
,
&
noAttribs
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_NO_ATTRIBUTES
,
&
noAttribs
));
ndbrequire
(
!
ndb_mgm_get_int_parameter
(
p
,
CFG_DIH_FRAG_CONNECT
,
&
noFrags
));
noAttribs
++
;
//RT 527 bug fix
noAttribs
++
;
//RT 527 bug fix
...
@@ -102,9 +103,7 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
...
@@ -102,9 +103,7 @@ Backup::execREAD_CONFIG_REQ(Signal* signal)
c_tablePool
.
setSize
(
noBackups
*
noTables
);
c_tablePool
.
setSize
(
noBackups
*
noTables
);
c_attributePool
.
setSize
(
noBackups
*
noAttribs
);
c_attributePool
.
setSize
(
noBackups
*
noAttribs
);
c_triggerPool
.
setSize
(
noBackups
*
3
*
noTables
);
c_triggerPool
.
setSize
(
noBackups
*
3
*
noTables
);
c_fragmentPool
.
setSize
(
noBackups
*
noFrags
);
// 2 = no of replicas
c_fragmentPool
.
setSize
(
noBackups
*
2
*
NO_OF_FRAG_PER_NODE
*
noTables
);
Uint32
szMem
=
0
;
Uint32
szMem
=
0
;
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_BACKUP_MEM
,
&
szMem
);
ndb_mgm_get_int_parameter
(
p
,
CFG_DB_BACKUP_MEM
,
&
szMem
);
...
...
ndb/src/kernel/blocks/dbtc/Dbtc.hpp
View file @
ce7446e1
...
@@ -1407,7 +1407,7 @@ private:
...
@@ -1407,7 +1407,7 @@ private:
const
UintR
scanParallel
,
const
UintR
scanParallel
,
const
UintR
noOprecPerFrag
);
const
UintR
noOprecPerFrag
);
void
initScanfragrec
(
Signal
*
signal
);
void
initScanfragrec
(
Signal
*
signal
);
void
releaseScanResources
(
ScanRecordPtr
);
void
releaseScanResources
(
ScanRecordPtr
,
bool
not_started
=
false
);
ScanRecordPtr
seizeScanrec
(
Signal
*
signal
);
ScanRecordPtr
seizeScanrec
(
Signal
*
signal
);
void
sendScanFragReq
(
Signal
*
,
ScanRecord
*
,
ScanFragRec
*
);
void
sendScanFragReq
(
Signal
*
,
ScanRecord
*
,
ScanFragRec
*
);
void
sendScanTabConf
(
Signal
*
signal
,
ScanRecordPtr
);
void
sendScanTabConf
(
Signal
*
signal
,
ScanRecordPtr
);
...
@@ -1554,7 +1554,8 @@ private:
...
@@ -1554,7 +1554,8 @@ private:
void
signalErrorRefuseLab
(
Signal
*
signal
);
void
signalErrorRefuseLab
(
Signal
*
signal
);
void
abort080Lab
(
Signal
*
signal
);
void
abort080Lab
(
Signal
*
signal
);
void
packKeyData000Lab
(
Signal
*
signal
,
BlockReference
TBRef
,
Uint32
len
);
void
packKeyData000Lab
(
Signal
*
signal
,
BlockReference
TBRef
,
Uint32
len
);
void
abortScanLab
(
Signal
*
signal
,
ScanRecordPtr
,
Uint32
errCode
);
void
abortScanLab
(
Signal
*
signal
,
ScanRecordPtr
,
Uint32
errCode
,
bool
not_started
=
false
);
void
sendAbortedAfterTimeout
(
Signal
*
signal
,
int
Tcheck
);
void
sendAbortedAfterTimeout
(
Signal
*
signal
,
int
Tcheck
);
void
abort010Lab
(
Signal
*
signal
);
void
abort010Lab
(
Signal
*
signal
);
void
abort015Lab
(
Signal
*
signal
);
void
abort015Lab
(
Signal
*
signal
);
...
...
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
ce7446e1
...
@@ -8839,17 +8839,17 @@ void Dbtc::scanAttrinfoLab(Signal* signal, UintR Tlen)
...
@@ -8839,17 +8839,17 @@ void Dbtc::scanAttrinfoLab(Signal* signal, UintR Tlen)
scanAttrinfo_attrbuf_error:
scanAttrinfo_attrbuf_error:
jam
();
jam
();
abortScanLab
(
signal
,
scanptr
,
ZGET_ATTRBUF_ERROR
);
abortScanLab
(
signal
,
scanptr
,
ZGET_ATTRBUF_ERROR
,
true
);
return
;
return
;
scanAttrinfo_attrbuf2_error:
scanAttrinfo_attrbuf2_error:
jam
();
jam
();
abortScanLab
(
signal
,
scanptr
,
ZGET_ATTRBUF_ERROR
);
abortScanLab
(
signal
,
scanptr
,
ZGET_ATTRBUF_ERROR
,
true
);
return
;
return
;
scanAttrinfo_len_error:
scanAttrinfo_len_error:
jam
();
jam
();
abortScanLab
(
signal
,
scanptr
,
ZLENGTH_ERROR
);
abortScanLab
(
signal
,
scanptr
,
ZLENGTH_ERROR
,
true
);
return
;
return
;
}
//Dbtc::scanAttrinfoLab()
}
//Dbtc::scanAttrinfoLab()
...
@@ -8865,7 +8865,8 @@ void Dbtc::diFcountReqLab(Signal* signal, ScanRecordPtr scanptr)
...
@@ -8865,7 +8865,8 @@ void Dbtc::diFcountReqLab(Signal* signal, ScanRecordPtr scanptr)
;
;
}
else
{
}
else
{
abortScanLab
(
signal
,
scanptr
,
abortScanLab
(
signal
,
scanptr
,
tabPtr
.
p
->
getErrorCode
(
scanptr
.
p
->
scanSchemaVersion
));
tabPtr
.
p
->
getErrorCode
(
scanptr
.
p
->
scanSchemaVersion
),
true
);
return
;
return
;
}
}
...
@@ -8932,13 +8933,13 @@ void Dbtc::execDI_FCOUNTCONF(Signal* signal)
...
@@ -8932,13 +8933,13 @@ void Dbtc::execDI_FCOUNTCONF(Signal* signal)
ndbrequire
(
scanptr
.
p
->
scanState
==
ScanRecord
::
WAIT_FRAGMENT_COUNT
);
ndbrequire
(
scanptr
.
p
->
scanState
==
ScanRecord
::
WAIT_FRAGMENT_COUNT
);
if
(
apiConnectptr
.
p
->
apiFailState
==
ZTRUE
)
{
if
(
apiConnectptr
.
p
->
apiFailState
==
ZTRUE
)
{
jam
();
jam
();
releaseScanResources
(
scanptr
);
releaseScanResources
(
scanptr
,
true
);
handleApiFailState
(
signal
,
apiConnectptr
.
i
);
handleApiFailState
(
signal
,
apiConnectptr
.
i
);
return
;
return
;
}
//if
}
//if
if
(
tfragCount
==
0
)
{
if
(
tfragCount
==
0
)
{
jam
();
jam
();
abortScanLab
(
signal
,
scanptr
,
ZNO_FRAGMENT_ERROR
);
abortScanLab
(
signal
,
scanptr
,
ZNO_FRAGMENT_ERROR
,
true
);
return
;
return
;
}
//if
}
//if
...
@@ -8952,7 +8953,8 @@ void Dbtc::execDI_FCOUNTCONF(Signal* signal)
...
@@ -8952,7 +8953,8 @@ void Dbtc::execDI_FCOUNTCONF(Signal* signal)
;
;
}
else
{
}
else
{
abortScanLab
(
signal
,
scanptr
,
abortScanLab
(
signal
,
scanptr
,
tabPtr
.
p
->
getErrorCode
(
scanptr
.
p
->
scanSchemaVersion
));
tabPtr
.
p
->
getErrorCode
(
scanptr
.
p
->
scanSchemaVersion
),
true
);
return
;
return
;
}
}
...
@@ -9016,20 +9018,22 @@ void Dbtc::execDI_FCOUNTREF(Signal* signal)
...
@@ -9016,20 +9018,22 @@ void Dbtc::execDI_FCOUNTREF(Signal* signal)
ndbrequire
(
scanptr
.
p
->
scanState
==
ScanRecord
::
WAIT_FRAGMENT_COUNT
);
ndbrequire
(
scanptr
.
p
->
scanState
==
ScanRecord
::
WAIT_FRAGMENT_COUNT
);
if
(
apiConnectptr
.
p
->
apiFailState
==
ZTRUE
)
{
if
(
apiConnectptr
.
p
->
apiFailState
==
ZTRUE
)
{
jam
();
jam
();
releaseScanResources
(
scanptr
);
releaseScanResources
(
scanptr
,
true
);
handleApiFailState
(
signal
,
apiConnectptr
.
i
);
handleApiFailState
(
signal
,
apiConnectptr
.
i
);
return
;
return
;
}
//if
}
//if
abortScanLab
(
signal
,
scanptr
,
errCode
);
abortScanLab
(
signal
,
scanptr
,
errCode
,
true
);
}
//Dbtc::execDI_FCOUNTREF()
}
//Dbtc::execDI_FCOUNTREF()
void
Dbtc
::
abortScanLab
(
Signal
*
signal
,
ScanRecordPtr
scanptr
,
Uint32
errCode
)
void
Dbtc
::
abortScanLab
(
Signal
*
signal
,
ScanRecordPtr
scanptr
,
Uint32
errCode
,
bool
not_started
)
{
{
scanTabRefLab
(
signal
,
errCode
);
scanTabRefLab
(
signal
,
errCode
);
releaseScanResources
(
scanptr
);
releaseScanResources
(
scanptr
,
not_started
);
}
//Dbtc::abortScanLab()
}
//Dbtc::abortScanLab()
void
Dbtc
::
releaseScanResources
(
ScanRecordPtr
scanPtr
)
void
Dbtc
::
releaseScanResources
(
ScanRecordPtr
scanPtr
,
bool
not_started
)
{
{
if
(
apiConnectptr
.
p
->
cachePtr
!=
RNIL
)
{
if
(
apiConnectptr
.
p
->
cachePtr
!=
RNIL
)
{
cachePtr
.
i
=
apiConnectptr
.
p
->
cachePtr
;
cachePtr
.
i
=
apiConnectptr
.
p
->
cachePtr
;
...
@@ -9041,6 +9045,15 @@ void Dbtc::releaseScanResources(ScanRecordPtr scanPtr)
...
@@ -9041,6 +9045,15 @@ void Dbtc::releaseScanResources(ScanRecordPtr scanPtr)
ptrCheckGuard
(
tcConnectptr
,
ctcConnectFilesize
,
tcConnectRecord
);
ptrCheckGuard
(
tcConnectptr
,
ctcConnectFilesize
,
tcConnectRecord
);
releaseTcCon
();
releaseTcCon
();
if
(
not_started
)
{
jam
();
ScanFragList
run
(
c_scan_frag_pool
,
scanPtr
.
p
->
m_running_scan_frags
);
ScanFragList
queue
(
c_scan_frag_pool
,
scanPtr
.
p
->
m_queued_scan_frags
);
run
.
release
();
queue
.
release
();
}
ndbrequire
(
scanPtr
.
p
->
m_running_scan_frags
.
isEmpty
());
ndbrequire
(
scanPtr
.
p
->
m_running_scan_frags
.
isEmpty
());
ndbrequire
(
scanPtr
.
p
->
m_queued_scan_frags
.
isEmpty
());
ndbrequire
(
scanPtr
.
p
->
m_queued_scan_frags
.
isEmpty
());
ndbrequire
(
scanPtr
.
p
->
m_delivered_scan_frags
.
isEmpty
());
ndbrequire
(
scanPtr
.
p
->
m_delivered_scan_frags
.
isEmpty
());
...
...
ndb/src/ndbapi/Ndbif.cpp
View file @
ce7446e1
...
@@ -1354,6 +1354,6 @@ NdbTransaction::sendTC_COMMIT_ACK(NdbApiSignal * aSignal,
...
@@ -1354,6 +1354,6 @@ NdbTransaction::sendTC_COMMIT_ACK(NdbApiSignal * aSignal,
Uint32
*
dataPtr
=
aSignal
->
getDataPtrSend
();
Uint32
*
dataPtr
=
aSignal
->
getDataPtrSend
();
dataPtr
[
0
]
=
transId1
;
dataPtr
[
0
]
=
transId1
;
dataPtr
[
1
]
=
transId2
;
dataPtr
[
1
]
=
transId2
;
tp
->
sendSignal
(
aSignal
,
refToNode
(
aTCRef
));
tp
->
sendSignal
UnCond
(
aSignal
,
refToNode
(
aTCRef
));
}
}
ndb/src/ndbapi/TransporterFacade.cpp
View file @
ce7446e1
...
@@ -813,7 +813,7 @@ TransporterFacade::sendSignal(NdbApiSignal * aSignal, NodeId aNode){
...
@@ -813,7 +813,7 @@ TransporterFacade::sendSignal(NdbApiSignal * aSignal, NodeId aNode){
LinearSectionPtr
ptr
[
3
];
LinearSectionPtr
ptr
[
3
];
signalLogger
.
sendSignal
(
*
aSignal
,
signalLogger
.
sendSignal
(
*
aSignal
,
1
,
1
,
aSignal
->
getDataPtr
()
,
tDataPtr
,
aNode
,
ptr
,
0
);
aNode
,
ptr
,
0
);
signalLogger
.
flushSignalLog
();
signalLogger
.
flushSignalLog
();
aSignal
->
theSendersBlockRef
=
tmp
;
aSignal
->
theSendersBlockRef
=
tmp
;
...
@@ -840,6 +840,7 @@ TransporterFacade::sendSignal(NdbApiSignal * aSignal, NodeId aNode){
...
@@ -840,6 +840,7 @@ TransporterFacade::sendSignal(NdbApiSignal * aSignal, NodeId aNode){
int
int
TransporterFacade
::
sendSignalUnCond
(
NdbApiSignal
*
aSignal
,
NodeId
aNode
){
TransporterFacade
::
sendSignalUnCond
(
NdbApiSignal
*
aSignal
,
NodeId
aNode
){
Uint32
*
tDataPtr
=
aSignal
->
getDataPtrSend
();
#ifdef API_TRACE
#ifdef API_TRACE
if
(
setSignalLog
()
&&
TRACE_GSN
(
aSignal
->
theVerId_signalNumber
)){
if
(
setSignalLog
()
&&
TRACE_GSN
(
aSignal
->
theVerId_signalNumber
)){
Uint32
tmp
=
aSignal
->
theSendersBlockRef
;
Uint32
tmp
=
aSignal
->
theSendersBlockRef
;
...
@@ -847,7 +848,7 @@ TransporterFacade::sendSignalUnCond(NdbApiSignal * aSignal, NodeId aNode){
...
@@ -847,7 +848,7 @@ TransporterFacade::sendSignalUnCond(NdbApiSignal * aSignal, NodeId aNode){
LinearSectionPtr
ptr
[
3
];
LinearSectionPtr
ptr
[
3
];
signalLogger
.
sendSignal
(
*
aSignal
,
signalLogger
.
sendSignal
(
*
aSignal
,
0
,
0
,
aSignal
->
getDataPtr
()
,
tDataPtr
,
aNode
,
ptr
,
0
);
aNode
,
ptr
,
0
);
signalLogger
.
flushSignalLog
();
signalLogger
.
flushSignalLog
();
aSignal
->
theSendersBlockRef
=
tmp
;
aSignal
->
theSendersBlockRef
=
tmp
;
...
@@ -858,7 +859,7 @@ TransporterFacade::sendSignalUnCond(NdbApiSignal * aSignal, NodeId aNode){
...
@@ -858,7 +859,7 @@ TransporterFacade::sendSignalUnCond(NdbApiSignal * aSignal, NodeId aNode){
(
aSignal
->
theReceiversBlockNumber
!=
0
));
(
aSignal
->
theReceiversBlockNumber
!=
0
));
SendStatus
ss
=
theTransporterRegistry
->
prepareSend
(
aSignal
,
SendStatus
ss
=
theTransporterRegistry
->
prepareSend
(
aSignal
,
0
,
0
,
aSignal
->
getDataPtr
(),
tDataPtr
,
aNode
,
aNode
,
0
);
0
);
...
...
ndb/src/ndbapi/TransporterFacade.hpp
View file @
ce7446e1
...
@@ -130,7 +130,8 @@ private:
...
@@ -130,7 +130,8 @@ private:
friend
class
GrepSS
;
friend
class
GrepSS
;
friend
class
Ndb
;
friend
class
Ndb
;
friend
class
Ndb_cluster_connection_impl
;
friend
class
Ndb_cluster_connection_impl
;
friend
class
NdbTransaction
;
int
sendSignalUnCond
(
NdbApiSignal
*
,
NodeId
nodeId
);
int
sendSignalUnCond
(
NdbApiSignal
*
,
NodeId
nodeId
);
bool
isConnected
(
NodeId
aNodeId
);
bool
isConnected
(
NodeId
aNodeId
);
...
...
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