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
33811ac3
Commit
33811ac3
authored
Aug 20, 2005
by
pappa@c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed back some bin log writes to avoid merge problems
Added missing #ifdef for partitioning
parent
5e91e260
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
sql/sql_table.cc
sql/sql_table.cc
+15
-4
No files found.
sql/sql_table.cc
View file @
33811ac3
...
...
@@ -375,8 +375,13 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
if
(
some_tables_deleted
||
tmp_table_deleted
||
!
error
)
{
query_cache_invalidate3
(
thd
,
tables
,
0
);
if
(
!
dont_log_query
)
write_bin_log
(
thd
,
!
error
);
if
(
!
dont_log_query
&&
mysql_bin_log
.
is_open
())
{
if
(
!
error
)
thd
->
clear_error
();
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
FALSE
,
FALSE
);
mysql_bin_log
.
write
(
&
qinfo
);
}
}
unlock_table_names
(
thd
,
tables
,
(
TABLE_LIST
*
)
0
);
...
...
@@ -1762,8 +1767,12 @@ bool mysql_create_table(THD *thd,const char *db, const char *table_name,
}
thd
->
tmp_table_used
=
1
;
}
if
(
!
internal_tmp_table
)
write_bin_log
(
thd
,
TRUE
);
if
(
!
internal_tmp_table
&&
mysql_bin_log
.
is_open
())
{
thd
->
clear_error
();
Query_log_event
qinfo
(
thd
,
thd
->
query
,
thd
->
query_length
,
FALSE
,
FALSE
);
mysql_bin_log
.
write
(
&
qinfo
);
}
error
=
FALSE
;
end:
...
...
@@ -4217,6 +4226,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
if
(
!
need_copy_table
)
create_info
->
frm_only
=
1
;
#ifdef HAVE_PARTITION_DB
if
(
partition_changed
)
{
if
(
online_drop_partition
)
...
...
@@ -4310,6 +4320,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
DBUG_RETURN
(
FALSE
);
}
}
#endif
/*
Handling of symlinked tables:
...
...
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