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
57093008
Commit
57093008
authored
Nov 11, 2000
by
sasha@laptop.slkc.uswest.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laptop commit
parent
a25aed33
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
2 deletions
+29
-2
BUILD/compile-pentium-debug-no-bdb
BUILD/compile-pentium-debug-no-bdb
+19
-0
sql/log.cc
sql/log.cc
+1
-0
sql/sql_insert.cc
sql/sql_insert.cc
+2
-0
sql/sql_repl.cc
sql/sql_repl.cc
+7
-2
No files found.
BUILD/compile-pentium-debug-no-bdb
0 → 100755
View file @
57093008
make -k clean
/bin/rm -f */.deps/*.P config.cache
aclocal; autoheader; aclocal; automake; autoconf
# If you are not using codefusion add "-Wpointer-arith" to WARNINGS
# The following warning flag will give too many warnings:
# -Wshadow -Wunused -Winline (The later isn't usable in C++ as
# __attribute()__ doesn't work with gnu C++)
GLOBAL_WARNINGS="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wuninitialized -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings"
C_WARNINGS="$GLOBAL_WARNINGS -Wunused"
CC_WARNINGS="$GLOBAL_WARNINGS -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"
CFLAGS="-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -O2 -mpentiumpro $C_WARNINGS" CXX=gcc \
CXXFLAGS="-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -O2 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti $CC_WARNINGS" \
./configure --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static --disable-shared --with-extra-charsets=complex --with-debug=full
make
sql/log.cc
View file @
57093008
...
@@ -289,6 +289,7 @@ int MYSQL_LOG::purge_logs(THD* thd, const char* to_log)
...
@@ -289,6 +289,7 @@ int MYSQL_LOG::purge_logs(THD* thd, const char* to_log)
bool
logs_to_purge_inited
=
0
,
logs_to_keep_inited
=
0
,
found_log
=
0
;
bool
logs_to_purge_inited
=
0
,
logs_to_keep_inited
=
0
,
found_log
=
0
;
DYNAMIC_ARRAY
logs_to_purge
,
logs_to_keep
;
DYNAMIC_ARRAY
logs_to_purge
,
logs_to_keep
;
my_off_t
purge_offset
;
my_off_t
purge_offset
;
LINT_INIT
(
purge_offset
);
pthread_mutex_lock
(
&
LOCK_index
);
pthread_mutex_lock
(
&
LOCK_index
);
if
(
my_fseek
(
index_file
,
0
,
MY_SEEK_SET
,
if
(
my_fseek
(
index_file
,
0
,
MY_SEEK_SET
,
...
...
sql/sql_insert.cc
View file @
57093008
...
@@ -1089,12 +1089,14 @@ bool delayed_insert::handle_inserts(void)
...
@@ -1089,12 +1089,14 @@ bool delayed_insert::handle_inserts(void)
pthread_mutex_lock
(
&
LOCK_delayed_status
);
pthread_mutex_lock
(
&
LOCK_delayed_status
);
delayed_insert_errors
++
;
delayed_insert_errors
++
;
pthread_mutex_unlock
(
&
LOCK_delayed_status
);
pthread_mutex_unlock
(
&
LOCK_delayed_status
);
row
->
log_query
=
0
;
}
}
if
(
row
->
query
&&
row
->
log_query
)
if
(
row
->
query
&&
row
->
log_query
)
{
{
mysql_update_log
.
write
(
&
thd
,
row
->
query
,
row
->
query_length
);
mysql_update_log
.
write
(
&
thd
,
row
->
query
,
row
->
query_length
);
if
(
mysql_bin_log
.
is_open
())
if
(
mysql_bin_log
.
is_open
())
{
{
thd
.
query_length
=
row
->
query_length
;
Query_log_event
qinfo
(
&
thd
,
row
->
query
);
Query_log_event
qinfo
(
&
thd
,
row
->
query
);
mysql_bin_log
.
write
(
&
qinfo
);
mysql_bin_log
.
write
(
&
qinfo
);
}
}
...
...
sql/sql_repl.cc
View file @
57093008
...
@@ -149,7 +149,7 @@ int purge_master_logs(THD* thd, const char* to_log)
...
@@ -149,7 +149,7 @@ int purge_master_logs(THD* thd, const char* to_log)
char
search_file_name
[
FN_REFLEN
];
char
search_file_name
[
FN_REFLEN
];
mysql_bin_log
.
make_log_name
(
search_file_name
,
to_log
);
mysql_bin_log
.
make_log_name
(
search_file_name
,
to_log
);
int
res
=
mysql_bin_log
.
purge_logs
(
thd
,
search_file_name
);
int
res
=
mysql_bin_log
.
purge_logs
(
thd
,
search_file_name
);
char
*
errmsg
=
0
;
c
onst
c
har
*
errmsg
=
0
;
switch
(
res
)
switch
(
res
)
{
{
case
0
:
break
;
case
0
:
break
;
...
@@ -169,9 +169,14 @@ binlog purge"; break;
...
@@ -169,9 +169,14 @@ binlog purge"; break;
}
}
if
(
errmsg
)
if
(
errmsg
)
send_error
(
&
thd
->
net
,
0
,
errmsg
);
{
send_error
(
&
thd
->
net
,
0
,
errmsg
);
return
1
;
}
else
else
send_ok
(
&
thd
->
net
);
send_ok
(
&
thd
->
net
);
return
0
;
}
}
void
mysql_binlog_send
(
THD
*
thd
,
char
*
log_ident
,
ulong
pos
,
ushort
flags
)
void
mysql_binlog_send
(
THD
*
thd
,
char
*
log_ident
,
ulong
pos
,
ushort
flags
)
...
...
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