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
351a03df
Commit
351a03df
authored
Jul 12, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
1c5773ad
543208de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
sql/log.cc
sql/log.cc
+8
-1
sql/mysqld.cc
sql/mysqld.cc
+3
-8
sql/sql_class.h
sql/sql_class.h
+0
-1
No files found.
sql/log.cc
View file @
351a03df
...
...
@@ -1089,7 +1089,14 @@ bool MYSQL_LOG::write(Log_event* event_info)
#endif
if
((
thd
&&
!
(
thd
->
options
&
OPTION_BIN_LOG
)
&&
(
thd
->
master_access
&
SUPER_ACL
))
||
(
local_db
&&
!
db_ok
(
local_db
,
binlog_do_db
,
binlog_ignore_db
)))
(
local_db
&&
!
db_ok
(
local_db
,
binlog_do_db
,
binlog_ignore_db
))
/*
This is the place for future tests like "do the involved tables match
(to be implemented) binlog_[wild_]{do|ignore}_table?" (WL#1049):
we will add a
&& ... to the if().
*/
)
{
VOID
(
pthread_mutex_unlock
(
&
LOCK_log
));
DBUG_PRINT
(
"error"
,(
"!db_ok"
));
...
...
sql/mysqld.cc
View file @
351a03df
...
...
@@ -1966,14 +1966,9 @@ bool open_log(MYSQL_LOG *log, const char *hostname,
if
(
type
==
LOG_BIN
)
{
char
*
p
=
fn_ext
(
opt_name
);
if
(
p
)
{
uint
length
=
(
uint
)
(
p
-
opt_name
);
strmake
(
tmp
,
opt_name
,
min
(
length
,
FN_REFLEN
));
opt_name
=
tmp
;
}
if
(
*
fn_ext
(
opt_name
))
log
->
set_no_rotate
(
1
);
uint
length
=
(
uint
)
(
p
-
opt_name
);
strmake
(
tmp
,
opt_name
,
min
(
length
,
FN_REFLEN
));
opt_name
=
tmp
;
}
return
log
->
open
(
opt_name
,
type
,
0
,
index_file_name
,
(
read_append
)
?
SEQ_READ_APPEND
:
WRITE_CACHE
,
...
...
sql/sql_class.h
View file @
351a03df
...
...
@@ -175,7 +175,6 @@ public:
inline
void
unlock_index
()
{
pthread_mutex_unlock
(
&
LOCK_index
);}
inline
IO_CACHE
*
get_index_file
()
{
return
&
index_file
;}
inline
uint32
get_open_count
()
{
return
open_count
;
}
inline
void
set_no_rotate
(
bool
no_rotate_arg
)
{
no_rotate
=
no_rotate_arg
;}
};
/* character conversion 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