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
06fd8990
Commit
06fd8990
authored
Jun 04, 2008
by
Michael Widenius
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge
parents
59294fb5
11ea5a1b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
8 deletions
+13
-8
mysql-test/r/maria-recover.result
mysql-test/r/maria-recover.result
+0
-1
mysql-test/t/maria-recover.test
mysql-test/t/maria-recover.test
+0
-3
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+1
-1
storage/maria/ma_static.c
storage/maria/ma_static.c
+1
-0
storage/maria/maria_def.h
storage/maria/maria_def.h
+11
-3
No files found.
mysql-test/r/maria-recover.result
View file @
06fd8990
...
...
@@ -27,7 +27,6 @@ Warnings:
Error 145 Table './mysqltest/t_corrupted2' is marked as crashed and should be repaired
Error 1194 Table 't_corrupted2' is marked as crashed and should be repaired
Error 1034 1 client is using or hasn't closed the table properly
Error 126 Incorrect key file for table './mysqltest/t_corrupted2.MAI'; try to repair it
Error 1034 Wrong base information on indexpage at page: 1
select * from t_corrupted2;
a
...
...
mysql-test/t/maria-recover.test
View file @
06fd8990
# Test of the --maria-recover option.
--
source
include
/
have_maria
.
inc
# line below will be removed
--
source
include
/
have_debug
.
inc
select
@@
global
.
maria_recover
;
set
global
maria_recover
=
off
;
...
...
storage/maria/ha_maria.cc
View file @
06fd8990
...
...
@@ -2941,7 +2941,7 @@ static int ha_maria_init(void *p)
maria_recovery_from_log
()
||
((
force_start_after_recovery_failures
!=
0
)
&&
mark_recovery_success
())
||
ma_checkpoint_init
(
checkpoint_interval
);
maria_multi_threaded
=
TRUE
;
maria_multi_threaded
=
maria_in_ha_maria
=
TRUE
;
return
res
?
HA_ERR_INITIALIZATION
:
0
;
}
...
...
storage/maria/ma_static.c
View file @
06fd8990
...
...
@@ -35,6 +35,7 @@ ulong maria_block_size= MARIA_KEY_BLOCK_LENGTH;
my_bool
maria_flush
=
0
,
maria_single_user
=
0
;
my_bool
maria_delay_key_write
=
0
,
maria_page_checksums
=
1
;
my_bool
maria_inited
=
FALSE
;
my_bool
maria_in_ha_maria
=
FALSE
;
/* If used from ha_maria or not */
pthread_mutex_t
THR_LOCK_maria
;
#if defined(THREAD) && !defined(DONT_USE_RW_LOCKS)
ulong
maria_concurrent_insert
=
2
;
...
...
storage/maria/maria_def.h
View file @
06fd8990
...
...
@@ -634,8 +634,16 @@ struct st_maria_handler
#define maria_is_crashed(x) ((x)->s->state.changed & STATE_CRASHED)
#define maria_is_crashed_on_repair(x) ((x)->s->state.changed & STATE_CRASHED_ON_REPAIR)
#ifdef EXTRA_DEBUG
#define maria_print_error(SHARE, ERRNO) \
_ma_report_error((ERRNO), (SHARE)->index_file_name)
/**
Brings additional information in certain debug builds and in standalone
(non-ha_maria) programs. To help debugging. Not in ha_maria, to not spam the
user (some messages can be produced many times per statement, or even
wrongly during some repair operations).
*/
#define maria_print_error(SHARE, ERRNO) \
do{ if (!maria_in_ha_maria) \
_ma_report_error((ERRNO), (SHARE)->index_file_name); } \
while(0)
#else
#define maria_print_error(SHARE, ERRNO) while (0)
#endif
...
...
@@ -728,7 +736,7 @@ extern uint maria_read_vec[], maria_readnext_vec[];
extern
uint
maria_quick_table_bits
;
extern
char
*
maria_data_root
;
extern
uchar
maria_zero_string
[];
extern
my_bool
maria_inited
;
extern
my_bool
maria_inited
,
maria_in_ha_maria
;
extern
HASH
maria_stored_state
;
/* This is used by _ma_calc_xxx_key_length och _ma_store_key */
...
...
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