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
36d6b64c
Commit
36d6b64c
authored
Mar 01, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
parents
5d895630
45608a01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
storage/ndb/src/kernel/blocks/lgman.cpp
storage/ndb/src/kernel/blocks/lgman.cpp
+11
-7
storage/ndb/src/kernel/blocks/lgman.hpp
storage/ndb/src/kernel/blocks/lgman.hpp
+3
-2
No files found.
storage/ndb/src/kernel/blocks/lgman.cpp
View file @
36d6b64c
...
...
@@ -839,6 +839,7 @@ Lgman::Logfile_group::Logfile_group(const CreateFilegroupImplReq* req)
m_last_lsn
=
0
;
m_last_synced_lsn
=
0
;
m_last_sync_req_lsn
=
0
;
m_max_sync_req_lsn
=
0
;
m_last_read_lsn
=
0
;
m_file_pos
[
0
].
m_ptr_i
=
m_file_pos
[
1
].
m_ptr_i
=
RNIL
;
...
...
@@ -1049,8 +1050,11 @@ Logfile_client::sync_lsn(Signal* signal,
wait
.
p
->
m_sync_lsn
=
lsn
;
memcpy
(
&
wait
.
p
->
m_callback
,
&
req
->
m_callback
,
sizeof
(
SimulatedBlock
::
Callback
));
}
ptr
.
p
->
m_max_sync_req_lsn
=
lsn
>
ptr
.
p
->
m_max_sync_req_lsn
?
lsn
:
ptr
.
p
->
m_max_sync_req_lsn
;
}
if
(
ptr
.
p
->
m_last_sync_req_lsn
<
lsn
&&
!
(
ptr
.
p
->
m_state
&
Lgman
::
Logfile_group
::
LG_FORCE_SYNC_THREAD
))
{
...
...
@@ -1111,16 +1115,16 @@ Lgman::force_log_sync(Signal* signal,
}
Ptr
<
Lgman
::
Log_waiter
>
last
;
if
(
list
.
last
(
last
)
&&
last
.
p
->
m_sync
_lsn
>
force_lsn
&&
ptr
.
p
->
m_last_sync_req_lsn
<
last
.
p
->
m_sync
_lsn
)
Uint64
max_req_lsn
=
ptr
.
p
->
m_max_sync_req_lsn
;
if
(
max_req
_lsn
>
force_lsn
&&
max_req_lsn
>
ptr
.
p
->
m_last_sync_req
_lsn
)
{
ndbrequire
(
ptr
.
p
->
m_state
&
Lgman
::
Logfile_group
::
LG_FORCE_SYNC_THREAD
);
signal
->
theData
[
0
]
=
LgmanContinueB
::
FORCE_LOG_SYNC
;
signal
->
theData
[
1
]
=
ptr
.
i
;
signal
->
theData
[
2
]
=
last
.
p
->
m_sync
_lsn
>>
32
;
signal
->
theData
[
3
]
=
last
.
p
->
m_sync
_lsn
&
0xFFFFFFFF
;
signal
->
theData
[
2
]
=
max_req
_lsn
>>
32
;
signal
->
theData
[
3
]
=
max_req
_lsn
&
0xFFFFFFFF
;
sendSignalWithDelay
(
reference
(),
GSN_CONTINUEB
,
signal
,
10
,
4
);
}
else
...
...
storage/ndb/src/kernel/blocks/lgman.hpp
View file @
36d6b64c
...
...
@@ -183,8 +183,9 @@ public:
Logfile_group
::
LG_FLUSH_THREAD
;
Uint64
m_last_lsn
;
Uint64
m_last_sync_req_lsn
;
Uint64
m_last_synced_lsn
;
Uint64
m_last_sync_req_lsn
;
// Outstanding
Uint64
m_last_synced_lsn
;
//
Uint64
m_max_sync_req_lsn
;
// User requested lsn
union
{
Uint64
m_last_read_lsn
;
Uint64
m_last_lcp_lsn
;
...
...
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