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
17dd8765
Commit
17dd8765
authored
Nov 24, 2008
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
9cc2ed53
5a169d9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
storage/maria/ma_pagecache.c
storage/maria/ma_pagecache.c
+3
-2
storage/maria/ma_recovery.c
storage/maria/ma_recovery.c
+4
-1
storage/maria/maria_def.h
storage/maria/maria_def.h
+2
-0
No files found.
storage/maria/ma_pagecache.c
View file @
17dd8765
...
...
@@ -99,7 +99,7 @@
DBUG_PRINT("info", \
("block: 0x%lx fd: %lu page: %lu s: %0x hshL: " \
" 0x%lx req: %u/%u wrlocks: %u rdlocks %u " \
"rdlocks_q: %u pins: %u status: %u", \
"rdlocks_q: %u pins: %u status: %u
type: %s
", \
(ulong)(B), \
(ulong)((B)->hash_link ? \
(B)->hash_link->file.file : \
...
...
@@ -114,7 +114,8 @@
(B)->hash_link->requests : \
0), \
block->wlocks, block->rlocks, block->rlocks_queue, \
(uint)(B)->pins, (uint)(B)->status))
(uint)(B)->pins, (uint)(B)->status, \
page_cache_page_type_str[(B)->type]))
/* TODO: put it to my_static.c */
my_bool
my_disable_flush_pagecache_blocks
=
0
;
...
...
storage/maria/ma_recovery.c
View file @
17dd8765
...
...
@@ -3243,6 +3243,7 @@ void _ma_tmp_disable_logging_for_table(MARIA_HA *info,
*/
share
->
state
.
common
=
*
info
->
state
;
info
->
state
=
&
share
->
state
.
common
;
info
->
switched_transactional
=
TRUE
;
/*
Some code in ma_blockrec.c assumes a trn even if !now_transactional but in
...
...
@@ -3273,8 +3274,10 @@ my_bool _ma_reenable_logging_for_table(MARIA_HA *info, my_bool flush_pages)
MARIA_SHARE
*
share
=
info
->
s
;
DBUG_ENTER
(
"_ma_reenable_logging_for_table"
);
if
(
share
->
now_transactional
==
share
->
base
.
born_transactional
)
if
(
share
->
now_transactional
==
share
->
base
.
born_transactional
||
!
info
->
switched_transactional
)
DBUG_RETURN
(
0
);
info
->
switched_transactional
=
FALSE
;
if
((
share
->
now_transactional
=
share
->
base
.
born_transactional
))
{
...
...
storage/maria/maria_def.h
View file @
17dd8765
...
...
@@ -548,6 +548,8 @@ struct st_maria_handler
/* If info->keyread_buff has to be re-read for rnext */
my_bool
keyread_buff_used
;
my_bool
once_flags
;
/* For MARIA_MRG */
/* For bulk insert enable/disable transactions control */
my_bool
switched_transactional
;
#ifdef __WIN__
my_bool
owned_by_merge
;
/* This Maria table is part of a merge union */
#endif
...
...
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