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
2182eb5c
Commit
2182eb5c
authored
Nov 22, 2007
by
mskold/marty@quadfish.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into mysql.com:/home/marty/MySQL/mysql-5.1-new-ndb
parents
1f244fad
2a83fd5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+14
-4
storage/ndb/src/ndbapi/TransporterFacade.cpp
storage/ndb/src/ndbapi/TransporterFacade.cpp
+1
-1
No files found.
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
2182eb5c
...
@@ -10678,6 +10678,12 @@ void Dbdih::execLCP_FRAG_REP(Signal* signal)
...
@@ -10678,6 +10678,12 @@ void Dbdih::execLCP_FRAG_REP(Signal* signal)
Uint32
started
=
lcpReport
->
maxGciStarted
;
Uint32
started
=
lcpReport
->
maxGciStarted
;
Uint32
completed
=
lcpReport
->
maxGciCompleted
;
Uint32
completed
=
lcpReport
->
maxGciCompleted
;
if
(
started
>
c_lcpState
.
lcpStopGcp
)
{
jam
();
c_lcpState
.
lcpStopGcp
=
started
;
}
if
(
tableDone
){
if
(
tableDone
){
jam
();
jam
();
...
@@ -11218,7 +11224,12 @@ void Dbdih::allNodesLcpCompletedLab(Signal* signal)
...
@@ -11218,7 +11224,12 @@ void Dbdih::allNodesLcpCompletedLab(Signal* signal)
signal
->
theData
[
0
]
=
NDB_LE_LocalCheckpointCompleted
;
//Event type
signal
->
theData
[
0
]
=
NDB_LE_LocalCheckpointCompleted
;
//Event type
signal
->
theData
[
1
]
=
SYSFILE
->
latestLCP_ID
;
signal
->
theData
[
1
]
=
SYSFILE
->
latestLCP_ID
;
sendSignal
(
CMVMI_REF
,
GSN_EVENT_REP
,
signal
,
2
,
JBB
);
sendSignal
(
CMVMI_REF
,
GSN_EVENT_REP
,
signal
,
2
,
JBB
);
if
(
c_newest_restorable_gci
>
c_lcpState
.
lcpStopGcp
)
{
jam
();
c_lcpState
.
lcpStopGcp
=
c_newest_restorable_gci
;
c_lcpState
.
lcpStopGcp
=
c_newest_restorable_gci
;
}
/**
/**
* Start checking for next LCP
* Start checking for next LCP
...
@@ -12088,13 +12099,12 @@ void Dbdih::findMinGci(ReplicaRecordPtr fmgReplicaPtr,
...
@@ -12088,13 +12099,12 @@ void Dbdih::findMinGci(ReplicaRecordPtr fmgReplicaPtr,
lcpNo
=
fmgReplicaPtr
.
p
->
nextLcp
;
lcpNo
=
fmgReplicaPtr
.
p
->
nextLcp
;
do
{
do
{
ndbrequire
(
lcpNo
<
MAX_LCP_STORED
);
ndbrequire
(
lcpNo
<
MAX_LCP_STORED
);
if
(
fmgReplicaPtr
.
p
->
lcpStatus
[
lcpNo
]
==
ZVALID
&&
if
(
fmgReplicaPtr
.
p
->
lcpStatus
[
lcpNo
]
==
ZVALID
)
fmgReplicaPtr
.
p
->
maxGciStarted
[
lcpNo
]
<
c_newest_restorable_gci
)
{
{
jam
();
jam
();
keepGci
=
fmgReplicaPtr
.
p
->
maxGciCompleted
[
lcpNo
];
keepGci
=
fmgReplicaPtr
.
p
->
maxGciCompleted
[
lcpNo
];
oldestRestorableGci
=
fmgReplicaPtr
.
p
->
maxGciStarted
[
lcpNo
];
oldestRestorableGci
=
fmgReplicaPtr
.
p
->
maxGciStarted
[
lcpNo
];
ndb
require
(((
int
)
oldestRestorableGci
)
>=
0
);
ndb
assert
(
fmgReplicaPtr
.
p
->
maxGciStarted
[
lcpNo
]
<
c_newest_restorable_gci
);
return
;
return
;
}
else
{
}
else
{
jam
();
jam
();
...
...
storage/ndb/src/ndbapi/TransporterFacade.cpp
View file @
2182eb5c
...
@@ -1501,9 +1501,9 @@ void PollGuard::unlock_and_signal()
...
@@ -1501,9 +1501,9 @@ void PollGuard::unlock_and_signal()
if
(
t_signal_cond_waiter
)
if
(
t_signal_cond_waiter
)
t_signal_cond_waiter
->
set_poll_owner
(
true
);
t_signal_cond_waiter
->
set_poll_owner
(
true
);
}
}
m_tp
->
unlock_mutex
();
if
(
t_signal_cond_waiter
)
if
(
t_signal_cond_waiter
)
t_signal_cond_waiter
->
cond_signal
();
t_signal_cond_waiter
->
cond_signal
();
m_tp
->
unlock_mutex
();
m_locked
=
false
;
m_locked
=
false
;
}
}
...
...
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