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
e94274f0
Commit
e94274f0
authored
Apr 03, 2006
by
mikael@c-4908e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes
parent
0a02cbb5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/sql_partition.cc
sql/sql_partition.cc
+2
-1
sql/sql_table.cc
sql/sql_table.cc
+5
-6
No files found.
sql/mysql_priv.h
View file @
e94274f0
...
@@ -1299,7 +1299,7 @@ void release_ddl_log_memory_entry(DDL_LOG_MEMORY_ENTRY *log_entry);
...
@@ -1299,7 +1299,7 @@ void release_ddl_log_memory_entry(DDL_LOG_MEMORY_ENTRY *log_entry);
bool
sync_ddl_log
();
bool
sync_ddl_log
();
void
release_ddl_log
();
void
release_ddl_log
();
void
execute_ddl_log_recovery
();
void
execute_ddl_log_recovery
();
bool
execute_ddl_log_entry
(
uint
first_entry
);
bool
execute_ddl_log_entry
(
THD
*
thd
,
uint
first_entry
);
void
lock_global_ddl_log
();
void
lock_global_ddl_log
();
void
unlock_global_ddl_log
();
void
unlock_global_ddl_log
();
...
...
sql/sql_partition.cc
View file @
e94274f0
...
@@ -5342,7 +5342,8 @@ void handle_alter_part_error(ALTER_PARTITION_PARAM_TYPE *lpt,
...
@@ -5342,7 +5342,8 @@ void handle_alter_part_error(ALTER_PARTITION_PARAM_TYPE *lpt,
DBUG_ENTER
(
"handle_alter_part_error"
);
DBUG_ENTER
(
"handle_alter_part_error"
);
if
(
!
part_info
->
first_log_entry
&&
if
(
!
part_info
->
first_log_entry
&&
execute_ddl_log_entry
(
part_info
->
first_log_entry
->
entry_pos
))
execute_ddl_log_entry
(
current_thd
,
part_info
->
first_log_entry
->
entry_pos
))
{
{
/*
/*
We couldn't recover from error, most likely manual interaction
We couldn't recover from error, most likely manual interaction
...
...
sql/sql_table.cc
View file @
e94274f0
...
@@ -434,8 +434,6 @@ static uint read_ddl_log_header()
...
@@ -434,8 +434,6 @@ static uint read_ddl_log_header()
else
else
successful_open
=
TRUE
;
successful_open
=
TRUE
;
}
}
else
sql_print_error
(
"Failed to open ddl log file in recovery"
);
entry_no
=
uint4korr
(
&
file_entry_buf
[
DDL_LOG_NUM_ENTRY_POS
]);
entry_no
=
uint4korr
(
&
file_entry_buf
[
DDL_LOG_NUM_ENTRY_POS
]);
global_ddl_log
.
name_len
=
uint4korr
(
&
file_entry_buf
[
DDL_LOG_NAME_LEN_POS
]);
global_ddl_log
.
name_len
=
uint4korr
(
&
file_entry_buf
[
DDL_LOG_NAME_LEN_POS
]);
global_ddl_log
.
handler_name_len
=
global_ddl_log
.
handler_name_len
=
...
@@ -526,11 +524,12 @@ static bool init_ddl_log()
...
@@ -526,11 +524,12 @@ static bool init_ddl_log()
sql_print_error
(
"Failed to open ddl log file"
);
sql_print_error
(
"Failed to open ddl log file"
);
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
global_ddl_log
.
inited
=
TRUE
;
if
(
write_ddl_log_header
())
if
(
write_ddl_log_header
())
{
{
global_ddl_log
.
inited
=
FALSE
;
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
global_ddl_log
.
inited
=
TRUE
;
DBUG_RETURN
(
FALSE
);
DBUG_RETURN
(
FALSE
);
}
}
...
@@ -776,7 +775,6 @@ bool write_ddl_log_entry(DDL_LOG_ENTRY *ddl_log_entry,
...
@@ -776,7 +775,6 @@ bool write_ddl_log_entry(DDL_LOG_ENTRY *ddl_log_entry,
VOID
(
sync_ddl_log
());
VOID
(
sync_ddl_log
());
if
(
write_ddl_log_header
())
if
(
write_ddl_log_header
())
error
=
TRUE
;
error
=
TRUE
;
VOID
(
sync_ddl_log
());
}
}
if
(
error
)
if
(
error
)
release_ddl_log_memory_entry
(
*
active_entry
);
release_ddl_log_memory_entry
(
*
active_entry
);
...
@@ -861,7 +859,6 @@ bool write_execute_ddl_log_entry(uint first_entry,
...
@@ -861,7 +859,6 @@ bool write_execute_ddl_log_entry(uint first_entry,
release_ddl_log_memory_entry
(
*
active_entry
);
release_ddl_log_memory_entry
(
*
active_entry
);
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
VOID
(
sync_ddl_log
());
}
}
DBUG_RETURN
(
FALSE
);
DBUG_RETURN
(
FALSE
);
}
}
...
@@ -1046,7 +1043,9 @@ bool execute_ddl_log_entry(THD *thd, uint first_entry)
...
@@ -1046,7 +1043,9 @@ bool execute_ddl_log_entry(THD *thd, uint first_entry)
void
execute_ddl_log_recovery
()
void
execute_ddl_log_recovery
()
{
{
uint
num_entries
,
i
;
uint
num_entries
,
i
;
THD
*
thd
;
DDL_LOG_ENTRY
ddl_log_entry
;
DDL_LOG_ENTRY
ddl_log_entry
;
char
file_name
[
FN_REFLEN
];
DBUG_ENTER
(
"execute_ddl_log_recovery"
);
DBUG_ENTER
(
"execute_ddl_log_recovery"
);
/*
/*
...
@@ -1069,7 +1068,7 @@ void execute_ddl_log_recovery()
...
@@ -1069,7 +1068,7 @@ void execute_ddl_log_recovery()
}
}
if
(
ddl_log_entry
.
entry_type
==
DDL_LOG_EXECUTE_CODE
)
if
(
ddl_log_entry
.
entry_type
==
DDL_LOG_EXECUTE_CODE
)
{
{
if
(
execute_ddl_log_entry
(
ddl_log_entry
.
next_entry
))
if
(
execute_ddl_log_entry
(
thd
,
ddl_log_entry
.
next_entry
))
{
{
/* Real unpleasant scenario but we continue anyways. */
/* Real unpleasant scenario but we continue anyways. */
DBUG_ASSERT
(
0
);
DBUG_ASSERT
(
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