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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
11b56938
Commit
11b56938
authored
Dec 27, 2012
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
bd842a96
a8b62240
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
sql/ha_partition.cc
sql/ha_partition.cc
+1
-0
sql/sql_table.cc
sql/sql_table.cc
+2
-5
No files found.
sql/ha_partition.cc
View file @
11b56938
...
@@ -3637,6 +3637,7 @@ int ha_partition::truncate_partition(Alter_info *alter_info, bool *binlog_stmt)
...
@@ -3637,6 +3637,7 @@ int ha_partition::truncate_partition(Alter_info *alter_info, bool *binlog_stmt)
part
,
sub_elem
->
partition_name
));
part
,
sub_elem
->
partition_name
));
if
((
error
=
m_file
[
part
]
->
ha_truncate
()))
if
((
error
=
m_file
[
part
]
->
ha_truncate
()))
break
;
break
;
sub_elem
->
part_state
=
PART_NORMAL
;
}
while
(
++
j
<
num_subparts
);
}
while
(
++
j
<
num_subparts
);
}
}
else
else
...
...
sql/sql_table.cc
View file @
11b56938
...
@@ -1140,6 +1140,7 @@ bool write_ddl_log_entry(DDL_LOG_ENTRY *ddl_log_entry,
...
@@ -1140,6 +1140,7 @@ bool write_ddl_log_entry(DDL_LOG_ENTRY *ddl_log_entry,
{
{
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
memset
(
file_entry_buf
,
0
,
sizeof
(
file_entry_buf
));
file_entry_buf
[
DDL_LOG_ENTRY_TYPE_POS
]
=
file_entry_buf
[
DDL_LOG_ENTRY_TYPE_POS
]
=
(
char
)
DDL_LOG_ENTRY_CODE
;
(
char
)
DDL_LOG_ENTRY_CODE
;
file_entry_buf
[
DDL_LOG_ACTION_TYPE_POS
]
=
file_entry_buf
[
DDL_LOG_ACTION_TYPE_POS
]
=
...
@@ -1234,6 +1235,7 @@ bool write_execute_ddl_log_entry(uint first_entry,
...
@@ -1234,6 +1235,7 @@ bool write_execute_ddl_log_entry(uint first_entry,
{
{
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
memset
(
file_entry_buf
,
0
,
sizeof
(
file_entry_buf
));
if
(
!
complete
)
if
(
!
complete
)
{
{
/*
/*
...
@@ -1247,12 +1249,7 @@ bool write_execute_ddl_log_entry(uint first_entry,
...
@@ -1247,12 +1249,7 @@ bool write_execute_ddl_log_entry(uint first_entry,
}
}
else
else
file_entry_buf
[
DDL_LOG_ENTRY_TYPE_POS
]
=
(
char
)
DDL_IGNORE_LOG_ENTRY_CODE
;
file_entry_buf
[
DDL_LOG_ENTRY_TYPE_POS
]
=
(
char
)
DDL_IGNORE_LOG_ENTRY_CODE
;
file_entry_buf
[
DDL_LOG_ACTION_TYPE_POS
]
=
0
;
/* Ignored for execute entries */
file_entry_buf
[
DDL_LOG_PHASE_POS
]
=
0
;
int4store
(
&
file_entry_buf
[
DDL_LOG_NEXT_ENTRY_POS
],
first_entry
);
int4store
(
&
file_entry_buf
[
DDL_LOG_NEXT_ENTRY_POS
],
first_entry
);
file_entry_buf
[
DDL_LOG_NAME_POS
]
=
0
;
file_entry_buf
[
DDL_LOG_NAME_POS
+
global_ddl_log
.
name_len
]
=
0
;
file_entry_buf
[
DDL_LOG_NAME_POS
+
2
*
global_ddl_log
.
name_len
]
=
0
;
if
(
!
(
*
active_entry
))
if
(
!
(
*
active_entry
))
{
{
if
(
get_free_ddl_log_entry
(
active_entry
,
&
write_header
))
if
(
get_free_ddl_log_entry
(
active_entry
,
&
write_header
))
...
...
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