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
0094b658
Commit
0094b658
authored
Mar 10, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0 into 10.1
parents
814d0507
1d47bd61
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
46 deletions
+40
-46
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
storage/innobase/buf/buf0buf.cc
storage/innobase/buf/buf0buf.cc
+16
-19
storage/maria/ma_pagecache.c
storage/maria/ma_pagecache.c
+7
-7
storage/xtradb/buf/buf0buf.cc
storage/xtradb/buf/buf0buf.cc
+16
-19
No files found.
sql/sql_yacc.yy
View file @
0094b658
...
...
@@ -1022,7 +1022,7 @@ bool LEX::set_bincmp(CHARSET_INFO *cs, bool bin)
bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize);
%}
%pure
_
parser /* We have threads */
%pure
-
parser /* We have threads */
%parse-param { THD *thd }
%lex-param { THD *thd }
/*
...
...
storage/innobase/buf/buf0buf.cc
View file @
0094b658
...
...
@@ -4879,25 +4879,22 @@ buf_all_freed_instance(
const
buf_block_t
*
block
=
buf_chunk_not_freed
(
chunk
);
if
(
UNIV_LIKELY_NULL
(
block
))
{
if
(
block
->
page
.
key_version
==
0
)
{
fil_space_t
*
space
=
fil_space_get
(
block
->
page
.
space
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page %u %u still fixed or dirty."
,
block
->
page
.
space
,
block
->
page
.
offset
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page oldest_modification "
LSN_PF
" fix_count %d io_fix %d."
,
block
->
page
.
oldest_modification
,
block
->
page
.
buf_fix_count
,
buf_page_get_io_fix
(
&
block
->
page
));
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page space_id %u name %s."
,
block
->
page
.
space
,
space
->
name
?
space
->
name
:
"NULL"
);
ut_error
;
}
if
(
UNIV_LIKELY_NULL
(
block
)
&&
block
->
page
.
key_version
==
0
)
{
fil_space_t
*
space
=
fil_space_get
(
block
->
page
.
space
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page %u %u still fixed or dirty."
,
block
->
page
.
space
,
block
->
page
.
offset
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page oldest_modification "
LSN_PF
" fix_count %d io_fix %d."
,
block
->
page
.
oldest_modification
,
block
->
page
.
buf_fix_count
,
buf_page_get_io_fix
(
&
block
->
page
));
ib_logf
(
IB_LOG_LEVEL_FATAL
,
"Page space_id %u name %s."
,
block
->
page
.
space
,
space
->
name
?
space
->
name
:
"NULL"
);
}
}
...
...
storage/maria/ma_pagecache.c
View file @
0094b658
...
...
@@ -887,8 +887,8 @@ size_t init_pagecache(PAGECACHE *pagecache, size_t use_mem,
pagecache
->
waiting_for_hash_link
.
last_thread
=
NULL
;
pagecache
->
waiting_for_block
.
last_thread
=
NULL
;
DBUG_PRINT
(
"exit"
,
(
"disk_blocks: %
ld block_root: 0x%lx hash_entries: %ld
\
hash_root: 0x%lx hash_links: %
ld
hash_link_root: 0x%lx"
,
(
"disk_blocks: %
zu block_root: 0x%lx hash_entries: %zu
\
hash_root: 0x%lx hash_links: %
zu
hash_link_root: 0x%lx"
,
pagecache
->
disk_blocks
,
(
long
)
pagecache
->
block_root
,
pagecache
->
hash_entries
,
(
long
)
pagecache
->
hash_root
,
pagecache
->
hash_links
,
(
long
)
pagecache
->
hash_link_root
));
...
...
@@ -1186,7 +1186,7 @@ void end_pagecache(PAGECACHE *pagecache, my_bool cleanup)
pagecache
->
blocks_changed
=
0
;
}
DBUG_PRINT
(
"status"
,
(
"used: %
lu changed: %l
u w_requests: %lu "
DBUG_PRINT
(
"status"
,
(
"used: %
zu changed: %z
u w_requests: %lu "
"writes: %lu r_requests: %lu reads: %lu"
,
pagecache
->
blocks_used
,
pagecache
->
global_blocks_changed
,
...
...
@@ -1521,7 +1521,7 @@ static void unreg_request(PAGECACHE *pagecache,
if
(
block
->
temperature
==
PCBLOCK_WARM
)
pagecache
->
warm_blocks
--
;
block
->
temperature
=
PCBLOCK_HOT
;
KEYCACHE_DBUG_PRINT
(
"unreg_request"
,
(
"#warm_blocks: %
l
u"
,
KEYCACHE_DBUG_PRINT
(
"unreg_request"
,
(
"#warm_blocks: %
z
u"
,
pagecache
->
warm_blocks
));
}
link_block
(
pagecache
,
block
,
hot
,
(
my_bool
)
at_end
);
...
...
@@ -1540,7 +1540,7 @@ static void unreg_request(PAGECACHE *pagecache,
pagecache
->
warm_blocks
++
;
block
->
temperature
=
PCBLOCK_WARM
;
}
KEYCACHE_DBUG_PRINT
(
"unreg_request"
,
(
"#warm_blocks: %
l
u"
,
KEYCACHE_DBUG_PRINT
(
"unreg_request"
,
(
"#warm_blocks: %
z
u"
,
pagecache
->
warm_blocks
));
}
}
...
...
@@ -4494,7 +4494,7 @@ static int flush_pagecache_blocks_int(PAGECACHE *pagecache,
int
rc
=
PCFLUSH_OK
;
DBUG_ENTER
(
"flush_pagecache_blocks_int"
);
DBUG_PRINT
(
"enter"
,
(
"fd: %d blocks_used: %
lu blocks_changed: %l
u type: %d"
,
(
"fd: %d blocks_used: %
zu blocks_changed: %z
u type: %d"
,
file
->
file
,
pagecache
->
blocks_used
,
pagecache
->
blocks_changed
,
type
));
...
...
@@ -4959,7 +4959,7 @@ my_bool pagecache_collect_changed_blocks_with_lsn(PAGECACHE *pagecache,
ptr
=
str
->
str
;
int8store
(
ptr
,
(
ulonglong
)
stored_list_size
);
ptr
+=
8
;
DBUG_PRINT
(
"info"
,
(
"found %
l
u dirty pages"
,
stored_list_size
));
DBUG_PRINT
(
"info"
,
(
"found %
z
u dirty pages"
,
stored_list_size
));
if
(
stored_list_size
==
0
)
goto
end
;
for
(
file_hash
=
0
;
file_hash
<
pagecache
->
changed_blocks_hash_size
;
file_hash
++
)
...
...
storage/xtradb/buf/buf0buf.cc
View file @
0094b658
...
...
@@ -5016,25 +5016,22 @@ buf_all_freed_instance(
mutex_exit
(
&
buf_pool
->
LRU_list_mutex
);
if
(
UNIV_LIKELY_NULL
(
block
))
{
if
(
block
->
page
.
key_version
==
0
)
{
fil_space_t
*
space
=
fil_space_get
(
block
->
page
.
space
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page %u %u still fixed or dirty."
,
block
->
page
.
space
,
block
->
page
.
offset
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page oldest_modification "
LSN_PF
" fix_count %d io_fix %d."
,
block
->
page
.
oldest_modification
,
block
->
page
.
buf_fix_count
,
buf_page_get_io_fix
(
&
block
->
page
));
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page space_id %u name %s."
,
block
->
page
.
space
,
space
->
name
?
space
->
name
:
"NULL"
);
ut_error
;
}
if
(
UNIV_LIKELY_NULL
(
block
)
&&
block
->
page
.
key_version
==
0
)
{
fil_space_t
*
space
=
fil_space_get
(
block
->
page
.
space
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page %u %u still fixed or dirty."
,
block
->
page
.
space
,
block
->
page
.
offset
);
ib_logf
(
IB_LOG_LEVEL_ERROR
,
"Page oldest_modification "
LSN_PF
" fix_count %d io_fix %d."
,
block
->
page
.
oldest_modification
,
block
->
page
.
buf_fix_count
,
buf_page_get_io_fix
(
&
block
->
page
));
ib_logf
(
IB_LOG_LEVEL_FATAL
,
"Page space_id %u name %s."
,
block
->
page
.
space
,
(
space
&&
space
->
name
)
?
space
->
name
:
"NULL"
);
}
}
...
...
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