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
bf963106
Commit
bf963106
authored
Dec 08, 2017
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
2662228d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
storage/innobase/dict/dict0defrag_bg.cc
storage/innobase/dict/dict0defrag_bg.cc
+1
-1
storage/innobase/dict/dict0stats.cc
storage/innobase/dict/dict0stats.cc
+6
-8
storage/innobase/include/dict0stats.h
storage/innobase/include/dict0stats.h
+1
-1
No files found.
storage/innobase/dict/dict0defrag_bg.cc
View file @
bf963106
...
...
@@ -318,7 +318,7 @@ dict_stats_save_defrag_stats(dict_index_t* index, trx_t* trx)
return
DB_SUCCESS
;
}
lin
t
now
=
ut_time
();
ib_time_
t
now
=
ut_time
();
dberr_t
err
=
dict_stats_save_index_stat
(
index
,
now
,
"n_page_split"
,
index
->
stat_defrag_n_page_split
,
...
...
storage/innobase/dict/dict0stats.cc
View file @
bf963106
...
...
@@ -2256,7 +2256,7 @@ storage.
dberr_t
dict_stats_save_index_stat
(
dict_index_t
*
index
,
lint
last_update
,
ib_time_t
last_update
,
const
char
*
stat_name
,
ib_uint64_t
stat_value
,
ib_uint64_t
*
sample_size
,
...
...
@@ -2278,7 +2278,7 @@ dict_stats_save_index_stat(
pars_info_add_str_literal
(
pinfo
,
"table_name"
,
table_utf8
);
pars_info_add_str_literal
(
pinfo
,
"index_name"
,
index
->
name
);
UNIV_MEM_ASSERT_RW_ABORT
(
&
last_update
,
4
);
pars_info_add_int4_literal
(
pinfo
,
"last_update"
,
last_update
);
pars_info_add_int4_literal
(
pinfo
,
"last_update"
,
(
lint
)
last_update
);
UNIV_MEM_ASSERT_RW_ABORT
(
stat_name
,
strlen
(
stat_name
));
pars_info_add_str_literal
(
pinfo
,
"stat_name"
,
stat_name
);
UNIV_MEM_ASSERT_RW_ABORT
(
&
stat_value
,
8
);
...
...
@@ -2389,7 +2389,7 @@ dict_stats_save(
const
index_id_t
*
only_for_index
=
NULL
)
{
pars_info_t
*
pinfo
;
lint
now
;
ib_time_t
now
;
dberr_t
ret
;
dict_table_t
*
table
;
char
db_utf8
[
MAX_DB_UTF8_LEN
];
...
...
@@ -2407,16 +2407,14 @@ dict_stats_save(
dict_fs2utf8
(
table
->
name
.
m_name
,
db_utf8
,
sizeof
(
db_utf8
),
table_utf8
,
sizeof
(
table_utf8
));
/* MySQL's timestamp is 4 byte, so we use
pars_info_add_int4_literal() which takes a lint arg, so "now" is
lint */
now
=
(
lint
)
ut_time
();
now
=
ut_time
();
pinfo
=
pars_info_create
();
pars_info_add_str_literal
(
pinfo
,
"database_name"
,
db_utf8
);
pars_info_add_str_literal
(
pinfo
,
"table_name"
,
table_utf8
);
pars_info_add_int4_literal
(
pinfo
,
"last_update"
,
now
);
pars_info_add_int4_literal
(
pinfo
,
"last_update"
,
(
lint
)
now
);
pars_info_add_ull_literal
(
pinfo
,
"n_rows"
,
table
->
stat_n_rows
);
pars_info_add_ull_literal
(
pinfo
,
"clustered_index_size"
,
table
->
stat_clustered_index_size
);
...
...
storage/innobase/include/dict0stats.h
View file @
bf963106
...
...
@@ -212,7 +212,7 @@ storage.
dberr_t
dict_stats_save_index_stat
(
dict_index_t
*
index
,
lint
last_update
,
ib_time_t
last_update
,
const
char
*
stat_name
,
ib_uint64_t
stat_value
,
ib_uint64_t
*
sample_size
,
...
...
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