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
72495c96
Commit
72495c96
authored
17 years ago
by
kostja@dipika.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename send_eof() to my_eof() for consistency with my_ok() and my_error()
parent
f106d973
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
37 additions
and
37 deletions
+37
-37
sql/events.cc
sql/events.cc
+1
-1
sql/handler.cc
sql/handler.cc
+2
-2
sql/repl_failsafe.cc
sql/repl_failsafe.cc
+2
-2
sql/slave.cc
sql/slave.cc
+1
-1
sql/sp.cc
sql/sp.cc
+1
-1
sql/sp_head.cc
sql/sp_head.cc
+2
-2
sql/sql_acl.cc
sql/sql_acl.cc
+1
-1
sql/sql_class.cc
sql/sql_class.cc
+1
-1
sql/sql_class.h
sql/sql_class.h
+3
-3
sql/sql_error.cc
sql/sql_error.cc
+1
-1
sql/sql_handler.cc
sql/sql_handler.cc
+1
-1
sql/sql_help.cc
sql/sql_help.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+4
-4
sql/sql_prepare.cc
sql/sql_prepare.cc
+1
-1
sql/sql_repl.cc
sql/sql_repl.cc
+4
-4
sql/sql_show.cc
sql/sql_show.cc
+9
-9
sql/sql_table.cc
sql/sql_table.cc
+2
-2
No files found.
sql/events.cc
View file @
72495c96
...
...
@@ -737,7 +737,7 @@ send_show_create_event(THD *thd, Event_timed *et, Protocol *protocol)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
This diff is collapsed.
Click to expand it.
sql/handler.cc
View file @
72495c96
...
...
@@ -1590,7 +1590,7 @@ bool mysql_xa_recover(THD *thd)
}
pthread_mutex_unlock
(
&
LOCK_xid_cache
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
0
);
}
...
...
@@ -4309,7 +4309,7 @@ bool ha_show_status(THD *thd, handlerton *db_type, enum ha_stat_type stat)
}
if
(
!
result
)
send
_eof
(
thd
);
my
_eof
(
thd
);
return
result
;
}
...
...
This diff is collapsed.
Click to expand it.
sql/repl_failsafe.cc
View file @
72495c96
...
...
@@ -475,7 +475,7 @@ bool show_new_master(THD* thd)
protocol
->
store
((
ulonglong
)
lex_mi
->
pos
);
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
}
...
...
@@ -688,7 +688,7 @@ bool show_slave_hosts(THD* thd)
}
}
pthread_mutex_unlock
(
&
LOCK_slave_list
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
This diff is collapsed.
Click to expand it.
sql/slave.cc
View file @
72495c96
...
...
@@ -1451,7 +1451,7 @@ bool show_master_info(THD* thd, Master_info* mi)
if
(
my_net_write
(
&
thd
->
net
,
(
uchar
*
)
thd
->
packet
.
ptr
(),
packet
->
length
()))
DBUG_RETURN
(
TRUE
);
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
This diff is collapsed.
Click to expand it.
sql/sp.cc
View file @
72495c96
...
...
@@ -1259,7 +1259,7 @@ sp_show_status_routine(THD *thd, int type, const char *name_pattern)
}
err_case1:
send
_eof
(
thd
);
my
_eof
(
thd
);
err_case:
table
->
file
->
ha_index_end
();
close_thread_tables
(
thd
);
...
...
This diff is collapsed.
Click to expand it.
sql/sp_head.cc
View file @
72495c96
...
...
@@ -2419,7 +2419,7 @@ sp_head::show_create_routine(THD *thd, int type)
err_status
=
protocol
->
write
();
if
(
!
err_status
)
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
err_status
);
}
...
...
@@ -2611,7 +2611,7 @@ sp_head::show_routine_code(THD *thd)
}
if
(
!
res
)
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
res
);
}
...
...
This diff is collapsed.
Click to expand it.
sql/sql_acl.cc
View file @
72495c96
...
...
@@ -4815,7 +4815,7 @@ end:
VOID
(
pthread_mutex_unlock
(
&
acl_cache
->
lock
));
rw_unlock
(
&
LOCK_grant
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
error
);
}
...
...
This diff is collapsed.
Click to expand it.
sql/sql_class.cc
View file @
72495c96
...
...
@@ -1548,7 +1548,7 @@ bool select_send::send_eof()
mysql_unlock_tables
(
thd
,
thd
->
lock
);
thd
->
lock
=
0
;
}
::
send
_eof
(
thd
);
::
my
_eof
(
thd
);
is_result_set_started
=
0
;
return
FALSE
;
}
...
...
This diff is collapsed.
Click to expand it.
sql/sql_class.h
View file @
72495c96
...
...
@@ -995,7 +995,7 @@ public:
DA_EMPTY
=
0
,
/** Set whenever one calls my_ok(). */
DA_OK
,
/** Set whenever one calls
send
_eof(). */
/** Set whenever one calls
my
_eof(). */
DA_EOF
,
/** Set whenever one calls my_error() or my_message(). */
DA_ERROR
,
...
...
@@ -1063,7 +1063,7 @@ private:
Copied from thd->server_status when the diagnostics area is assigned.
We need this member as some places in the code use the following pattern:
thd->server_status|= ...
send
_eof(thd);
my
_eof(thd);
thd->server_status&= ~...
Assigned by OK, EOF or ERROR.
*/
...
...
@@ -2151,7 +2151,7 @@ my_ok(THD *thd, ha_rows affected_rows= 0, ulonglong id= 0,
/** A short cut for thd->main_da.set_eof_status(). */
inline
void
send
_eof
(
THD
*
thd
)
my
_eof
(
THD
*
thd
)
{
thd
->
main_da
.
set_eof_status
(
thd
);
}
...
...
This diff is collapsed.
Click to expand it.
sql/sql_error.cc
View file @
72495c96
...
...
@@ -249,6 +249,6 @@ bool mysqld_show_warnings(THD *thd, ulong levels_to_show)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
This diff is collapsed.
Click to expand it.
sql/sql_handler.cc
View file @
72495c96
...
...
@@ -658,7 +658,7 @@ retry:
}
ok:
mysql_unlock_tables
(
thd
,
lock
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_PRINT
(
"exit"
,(
"OK"
));
DBUG_RETURN
(
FALSE
);
...
...
This diff is collapsed.
Click to expand it.
sql/sql_help.cc
View file @
72495c96
...
...
@@ -779,7 +779,7 @@ bool mysqld_help(THD *thd, const char *mask)
if
(
send_variant_2_list
(
mem_root
,
protocol
,
&
categories_list
,
"Y"
,
0
))
goto
error
;
}
send
_eof
(
thd
);
my
_eof
(
thd
);
close_system_tables
(
thd
,
&
open_tables_state_backup
);
DBUG_RETURN
(
FALSE
);
...
...
This diff is collapsed.
Click to expand it.
sql/sql_parse.cc
View file @
72495c96
...
...
@@ -1348,7 +1348,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
}
DBUG_PRINT
(
"quit"
,(
"Got shutdown command for level %u"
,
level
));
general_log_print
(
thd
,
command
,
NullS
);
send
_eof
(
thd
);
my
_eof
(
thd
);
close_thread_tables
(
thd
);
// Free before kill
kill_mysql
();
error
=
TRUE
;
...
...
@@ -1434,11 +1434,11 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
switch
(
opt_command
)
{
case
(
int
)
MYSQL_OPTION_MULTI_STATEMENTS_ON
:
thd
->
client_capabilities
|=
CLIENT_MULTI_STATEMENTS
;
send
_eof
(
thd
);
my
_eof
(
thd
);
break
;
case
(
int
)
MYSQL_OPTION_MULTI_STATEMENTS_OFF
:
thd
->
client_capabilities
&=
~
CLIENT_MULTI_STATEMENTS
;
send
_eof
(
thd
);
my
_eof
(
thd
);
break
;
default:
my_message
(
ER_UNKNOWN_COM_ERROR
,
ER
(
ER_UNKNOWN_COM_ERROR
),
MYF
(
0
));
...
...
@@ -1452,7 +1452,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
break
;
/* purecov: inspected */
mysql_print_status
();
general_log_print
(
thd
,
command
,
NullS
);
send
_eof
(
thd
);
my
_eof
(
thd
);
break
;
case
COM_SLEEP
:
case
COM_CONNECT
:
// Impossible here
...
...
This diff is collapsed.
Click to expand it.
sql/sql_prepare.cc
View file @
72495c96
...
...
@@ -2662,7 +2662,7 @@ bool Select_fetch_protocol_binary::send_fields(List<Item> &list, uint flags)
bool
Select_fetch_protocol_binary
::
send_eof
()
{
::
send
_eof
(
thd
);
::
my
_eof
(
thd
);
return
FALSE
;
}
...
...
This diff is collapsed.
Click to expand it.
sql/sql_repl.cc
View file @
72495c96
...
...
@@ -738,7 +738,7 @@ end:
end_io_cache
(
&
log
);
(
void
)
my_close
(
file
,
MYF
(
MY_WME
));
send
_eof
(
thd
);
my
_eof
(
thd
);
thd_proc_info
(
thd
,
"Waiting to finalize termination"
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
thd
->
current_linfo
=
0
;
...
...
@@ -1453,7 +1453,7 @@ err:
my_error
(
ER_ERROR_WHEN_EXECUTING_COMMAND
,
MYF
(
0
),
"SHOW BINLOG EVENTS"
,
errmsg
);
else
send
_eof
(
thd
);
my
_eof
(
thd
);
pthread_mutex_lock
(
&
LOCK_thread_count
);
thd
->
current_linfo
=
0
;
...
...
@@ -1490,7 +1490,7 @@ bool show_binlog_info(THD* thd)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -1572,7 +1572,7 @@ bool show_binlogs(THD* thd)
goto
err
;
}
mysql_bin_log
.
unlock_index
();
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
err:
...
...
This diff is collapsed.
Click to expand it.
sql/sql_show.cc
View file @
72495c96
...
...
@@ -224,7 +224,7 @@ bool mysqld_show_authors(THD *thd)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -258,7 +258,7 @@ bool mysqld_show_contributors(THD *thd)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -331,7 +331,7 @@ bool mysqld_show_privileges(THD *thd)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -419,7 +419,7 @@ bool mysqld_show_column_types(THD *thd)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -666,7 +666,7 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -747,7 +747,7 @@ bool mysqld_show_create_db(THD *thd, char *dbname,
if
(
protocol
->
write
())
DBUG_RETURN
(
TRUE
);
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
}
...
...
@@ -789,7 +789,7 @@ mysqld_list_fields(THD *thd, TABLE_LIST *table_list, const char *wild)
table
->
use_all_columns
();
if
(
thd
->
protocol
->
send_fields
(
&
field_list
,
Protocol
::
SEND_DEFAULTS
))
DBUG_VOID_RETURN
;
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_VOID_RETURN
;
}
...
...
@@ -1738,7 +1738,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
if
(
protocol
->
write
())
break
;
/* purecov: inspected */
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_VOID_RETURN
;
}
...
...
@@ -6760,7 +6760,7 @@ static bool show_create_trigger_impl(THD *thd,
ret_code
=
p
->
write
();
if
(
!
ret_code
)
send
_eof
(
thd
);
my
_eof
(
thd
);
return
ret_code
!=
0
;
}
...
...
This diff is collapsed.
Click to expand it.
sql/sql_table.cc
View file @
72495c96
...
...
@@ -4501,7 +4501,7 @@ send_result_message:
goto
err
;
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
err:
...
...
@@ -7311,7 +7311,7 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables,
goto
err
;
}
send
_eof
(
thd
);
my
_eof
(
thd
);
DBUG_RETURN
(
FALSE
);
err:
...
...
This diff is collapsed.
Click to expand it.
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