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
862b0344
Commit
862b0344
authored
Feb 04, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler errors.
parent
55fab3db
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
storage/innobase/srv/srv0start.cc
storage/innobase/srv/srv0start.cc
+8
-2
storage/tokudb/ft-index/ft/ft-ops.cc
storage/tokudb/ft-index/ft/ft-ops.cc
+1
-1
storage/xtradb/srv/srv0start.cc
storage/xtradb/srv/srv0start.cc
+6
-1
No files found.
storage/innobase/srv/srv0start.cc
View file @
862b0344
...
...
@@ -1436,7 +1436,9 @@ srv_start_wait_for_purge_to_start()
/* JAN: TODO: */
/**********************************************************************************/
#ifdef UNIV_DEBUG
extern
int
timediff
(
struct
timeval
*
g_time
,
struct
timeval
*
s_time
,
struct
timeval
*
d_time
);
#endif
extern
ibool
buf_flush_start
(
buf_pool_t
*
buf_pool
,
enum
buf_flush
flush_type
);
extern
void
buf_flush_end
(
buf_pool_t
*
buf_pool
,
enum
buf_flush
flush_type
);
extern
void
buf_flush_common
(
enum
buf_flush
flush_type
,
ulint
page_count
);
...
...
@@ -1545,8 +1547,9 @@ int setup_wrk_itm(int items)
int
flush_pool_instance
(
wrk_t
*
wi
)
{
#ifdef UNIV_DEBUG
struct
timeval
p_start_time
,
p_end_time
,
d_time
;
#endif
if
(
!
wi
)
{
fprintf
(
stderr
,
"work item invalid wi:%p
\n
"
,
wi
);
return
-
1
;
...
...
@@ -1575,8 +1578,10 @@ int flush_pool_instance(wrk_t *wi)
return
-
1
;
}
#ifdef UNIV_DEBUG
/* Record time taken for the OP in usec */
gettimeofday
(
&
p_start_time
,
0x0
);
#endif
if
(
wi
->
wr
.
flush_type
==
BUF_FLUSH_LRU
)
{
/* srv_LRU_scan_depth can be arbitrarily large value.
...
...
@@ -1595,10 +1600,11 @@ int flush_pool_instance(wrk_t *wi)
buf_flush_end
(
wi
->
wr
.
buf_pool
,
wi
->
wr
.
flush_type
);
buf_flush_common
(
wi
->
wr
.
flush_type
,
wi
->
result
);
#ifdef UNIV_DEBUG
gettimeofday
(
&
p_end_time
,
0x0
);
timediff
(
&
p_end_time
,
&
p_start_time
,
&
d_time
);
wi
->
t_usec
=
(
unsigned
long
)(
d_time
.
tv_usec
+
(
d_time
.
tv_sec
*
1000000
));
#endif
return
0
;
}
...
...
storage/tokudb/ft-index/ft/ft-ops.cc
View file @
862b0344
...
...
@@ -2330,7 +2330,7 @@ basement_node_gc_all_les(BASEMENTNODE bn,
while
(
index
<
(
num_leafentries_before
=
bn
->
data_buffer
.
omt_size
()))
{
void
*
keyp
=
NULL
;
uint32_t
keylen
=
0
;
LEAFENTRY
leaf_entry
;
LEAFENTRY
leaf_entry
=
0
;
bn
->
data_buffer
.
fetch_klpair
(
index
,
&
leaf_entry
,
&
keylen
,
&
keyp
);
assert_zero
(
r
);
ft_basement_node_gc_once
(
...
...
storage/xtradb/srv/srv0start.cc
View file @
862b0344
...
...
@@ -1510,7 +1510,10 @@ init_log_online(void)
/* JAN: TODO: */
/**********************************************************************************/
#ifdef UNIV_DEBUG
extern
int
timediff
(
struct
timeval
*
g_time
,
struct
timeval
*
s_time
,
struct
timeval
*
d_time
);
#endif
extern
ibool
buf_flush_start
(
buf_pool_t
*
buf_pool
,
buf_flush_t
flush_type
);
extern
void
buf_flush_end
(
buf_pool_t
*
buf_pool
,
buf_flush_t
flush_type
);
extern
void
buf_flush_common
(
buf_flush_t
flush_type
,
ulint
page_count
);
...
...
@@ -1676,10 +1679,12 @@ int flush_pool_instance(wrk_t *wi)
buf_flush_end
(
wi
->
wr
.
buf_pool
,
wi
->
wr
.
flush_type
);
buf_flush_common
(
wi
->
wr
.
flush_type
,
wi
->
result
);
#ifdef UNIV_DEBUG
gettimeofday
(
&
p_end_time
,
0x0
);
timediff
(
&
p_end_time
,
&
p_start_time
,
&
d_time
);
wi
->
t_usec
=
(
unsigned
long
)(
d_time
.
tv_usec
+
(
d_time
.
tv_sec
*
1000000
));
#endif
return
0
;
}
...
...
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