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
9fb88bfb
Commit
9fb88bfb
authored
Mar 13, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for embeded library compile
parent
4901295a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
sql/log.cc
sql/log.cc
+2
-0
sql/mysqld.cc
sql/mysqld.cc
+2
-0
sql/sql_parse.cc
sql/sql_parse.cc
+2
-0
No files found.
sql/log.cc
View file @
9fb88bfb
...
...
@@ -1260,6 +1260,7 @@ bool MYSQL_LOG::write(Log_event* event_info)
}
pthread_mutex_unlock
(
&
LOCK_log
);
#ifdef HAVE_REPLICATION
if
(
should_rotate
&&
expire_logs_days
)
{
long
purge_time
=
time
(
0
)
-
expire_logs_days
*
24
*
60
*
60
;
...
...
@@ -1267,6 +1268,7 @@ bool MYSQL_LOG::write(Log_event* event_info)
error
=
purge_logs_before_date
(
current_thd
,
purge_time
);
}
#endif
DBUG_RETURN
(
error
);
}
...
...
sql/mysqld.cc
View file @
9fb88bfb
...
...
@@ -2176,12 +2176,14 @@ static int init_server_components()
open_log
(
&
mysql_bin_log
,
glob_hostname
,
opt_bin_logname
,
"-bin"
,
opt_binlog_index_name
,
LOG_BIN
);
using_update_log
=
1
;
#ifdef HAVE_REPLICATION
if
(
expire_logs_days
)
{
long
purge_time
=
time
(
0
)
-
expire_logs_days
*
24
*
60
*
60
;
if
(
purge_time
>=
0
)
mysql_bin_log
.
purge_logs_before_date
(
current_thd
,
purge_time
);
}
#endif
}
if
(
opt_error_log
)
...
...
sql/sql_parse.cc
View file @
9fb88bfb
...
...
@@ -3940,12 +3940,14 @@ bool reload_acl_and_cache(THD *thd, ulong options, TABLE_LIST *tables)
mysql_log
.
new_file
(
1
);
mysql_update_log
.
new_file
(
1
);
mysql_bin_log
.
new_file
(
1
);
#ifdef HAVE_REPLICATION
if
(
expire_logs_days
)
{
long
purge_time
=
time
(
0
)
-
expire_logs_days
*
24
*
60
*
60
;
if
(
purge_time
>=
0
)
mysql_bin_log
.
purge_logs_before_date
(
thd
,
purge_time
);
}
#endif
mysql_slow_log
.
new_file
(
1
);
if
(
ha_flush_logs
())
result
=
1
;
...
...
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