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
23d10724
Commit
23d10724
authored
Jan 27, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-new
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new
parents
7511a45b
9ea27d32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
storage/ndb/src/kernel/blocks/lgman.cpp
storage/ndb/src/kernel/blocks/lgman.cpp
+15
-6
No files found.
storage/ndb/src/kernel/blocks/lgman.cpp
View file @
23d10724
...
@@ -1461,6 +1461,8 @@ Lgman::process_log_buffer_waiters(Signal* signal, Ptr<Logfile_group> ptr)
...
@@ -1461,6 +1461,8 @@ Lgman::process_log_buffer_waiters(Signal* signal, Ptr<Logfile_group> ptr)
}
}
}
}
#define REALLY_SLOW_FS 0
Uint32
Uint32
Lgman
::
write_log_pages
(
Signal
*
signal
,
Ptr
<
Logfile_group
>
ptr
,
Lgman
::
write_log_pages
(
Signal
*
signal
,
Ptr
<
Logfile_group
>
ptr
,
Uint32
pageId
,
Uint32
in_pages
)
Uint32
pageId
,
Uint32
in_pages
)
...
@@ -1507,6 +1509,10 @@ Lgman::write_log_pages(Signal* signal, Ptr<Logfile_group> ptr,
...
@@ -1507,6 +1509,10 @@ Lgman::write_log_pages(Signal* signal, Ptr<Logfile_group> ptr,
head
.
m_idx
+=
max
;
head
.
m_idx
+=
max
;
ptr
.
p
->
m_file_pos
[
HEAD
]
=
head
;
ptr
.
p
->
m_file_pos
[
HEAD
]
=
head
;
if
(
REALLY_SLOW_FS
)
sendSignalWithDelay
(
NDBFS_REF
,
GSN_FSWRITEREQ
,
signal
,
REALLY_SLOW_FS
,
FsReadWriteReq
::
FixedLength
+
1
);
else
sendSignal
(
NDBFS_REF
,
GSN_FSWRITEREQ
,
signal
,
sendSignal
(
NDBFS_REF
,
GSN_FSWRITEREQ
,
signal
,
FsReadWriteReq
::
FixedLength
+
1
,
JBA
);
FsReadWriteReq
::
FixedLength
+
1
,
JBA
);
...
@@ -1529,6 +1535,10 @@ Lgman::write_log_pages(Signal* signal, Ptr<Logfile_group> ptr,
...
@@ -1529,6 +1535,10 @@ Lgman::write_log_pages(Signal* signal, Ptr<Logfile_group> ptr,
req
->
numberOfPages
=
max
;
req
->
numberOfPages
=
max
;
FsReadWriteReq
::
setSyncFlag
(
req
->
operationFlag
,
1
);
FsReadWriteReq
::
setSyncFlag
(
req
->
operationFlag
,
1
);
if
(
REALLY_SLOW_FS
)
sendSignalWithDelay
(
NDBFS_REF
,
GSN_FSWRITEREQ
,
signal
,
REALLY_SLOW_FS
,
FsReadWriteReq
::
FixedLength
+
1
);
else
sendSignal
(
NDBFS_REF
,
GSN_FSWRITEREQ
,
signal
,
sendSignal
(
NDBFS_REF
,
GSN_FSWRITEREQ
,
signal
,
FsReadWriteReq
::
FixedLength
+
1
,
JBA
);
FsReadWriteReq
::
FixedLength
+
1
,
JBA
);
...
@@ -1553,7 +1563,6 @@ Lgman::write_log_pages(Signal* signal, Ptr<Logfile_group> ptr,
...
@@ -1553,7 +1563,6 @@ Lgman::write_log_pages(Signal* signal, Ptr<Logfile_group> ptr,
files
.
first
(
next
);
files
.
first
(
next
);
}
}
ndbout_c
(
"changing file from %d to %d"
,
filePtr
.
i
,
next
.
i
);
ndbout_c
(
"changing file from %d to %d"
,
filePtr
.
i
,
next
.
i
);
ndbassert
(
filePtr
.
i
!=
next
.
i
);
filePtr
.
p
->
m_state
|=
Undofile
::
FS_MOVE_NEXT
;
filePtr
.
p
->
m_state
|=
Undofile
::
FS_MOVE_NEXT
;
next
.
p
->
m_state
&=
~
(
Uint32
)
Undofile
::
FS_EMPTY
;
next
.
p
->
m_state
&=
~
(
Uint32
)
Undofile
::
FS_EMPTY
;
...
...
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