Skip to content

Commit a805fd2

Browse files
committed
merge trunk -> trunk-mtr
2 parents e0aa62a + 9ea493e commit a805fd2

File tree

638 files changed

+20418
-12841
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

638 files changed

+20418
-12841
lines changed

client/mysql_plugin.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ static int build_bootstrap_file(char *operation, char *bootstrap)
10811081
else
10821082
{
10831083
fprintf(file,
1084-
"DELETE FROM mysql.plugin WHERE name = '%s';", plugin_data.name);
1084+
"DELETE FROM mysql.plugin WHERE dl = '%s';", plugin_data.so_name);
10851085
if (opt_verbose)
10861086
{
10871087
printf("# Disabling %s...\n", plugin_data.name);
@@ -1160,7 +1160,6 @@ static int bootstrap_server(char *server_path, char *bootstrap_file)
11601160
{
11611161
char bootstrap_cmd[FN_REFLEN];
11621162
int error= 0;
1163-
int ret= 0;
11641163

11651164
#ifdef __WIN__
11661165
char *format_str= 0;
@@ -1196,7 +1195,7 @@ static int bootstrap_server(char *server_path, char *bootstrap_file)
11961195
if (error)
11971196
fprintf(stderr,
11981197
"ERROR: Unexpected result from bootstrap. Error code: %d.\n",
1199-
ret);
1198+
error);
12001199

12011200
return error;
12021201
}

client/mysqldump.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -914,13 +914,7 @@ static int get_options(int *argc, char ***argv)
914914
my_hash_insert(&ignore_table,
915915
(uchar*) my_strdup("mysql.general_log", MYF(MY_WME))) ||
916916
my_hash_insert(&ignore_table,
917-
(uchar*) my_strdup("mysql.slow_log", MYF(MY_WME))) ||
918-
my_hash_insert(&ignore_table,
919-
(uchar*) my_strdup("mysql.slave_master_info", MYF(MY_WME))) ||
920-
my_hash_insert(&ignore_table,
921-
(uchar*) my_strdup("mysql.slave_relay_log_info", MYF(MY_WME))) ||
922-
my_hash_insert(&ignore_table,
923-
(uchar*) my_strdup("mysql.slave_worker_info", MYF(MY_WME))))
917+
(uchar*) my_strdup("mysql.slow_log", MYF(MY_WME))))
924918
return(EX_EOM);
925919

926920
if ((ho_error= handle_options(argc, argv, my_long_options, get_one_option)))

client/mysqltest.cc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4822,6 +4822,7 @@ void do_get_errcodes(struct st_command *command)
48224822
struct st_match_err *to= saved_expected_errors.err;
48234823
char *p= command->first_argument;
48244824
uint count= 0;
4825+
char *next;
48254826

48264827
DBUG_ENTER("do_get_errcodes");
48274828

@@ -4841,6 +4842,17 @@ void do_get_errcodes(struct st_command *command)
48414842
while (*end && *end != ',' && *end != ' ')
48424843
end++;
48434844

4845+
next=end;
4846+
4847+
/* code to handle variables passed to mysqltest */
4848+
if( *p == '$')
4849+
{
4850+
const char* fin;
4851+
VAR *var = var_get(p,&fin,0,0);
4852+
p=var->str_val;
4853+
end=p+var->str_val_len;
4854+
}
4855+
48444856
if (*p == 'S')
48454857
{
48464858
char *to_ptr= to->code.sqlstate;
@@ -4915,7 +4927,7 @@ void do_get_errcodes(struct st_command *command)
49154927
die("Too many errorcodes specified");
49164928

49174929
/* Set pointer to the end of the last error code */
4918-
p= end;
4930+
p= next;
49194931

49204932
/* Find next ',' */
49214933
while (*p && *p != ',')

cmd-line-utils/libedit/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ IF(NOT HAVE_FGETLN)
100100
SET(LIBEDIT_EXTRA_SOURCES ${LIBEDIT_EXTRA_SOURCES} np/fgetln.c)
101101
ENDIF()
102102

103+
CHECK_FUNCTION_EXISTS(fgetln HAVE_WCSDUP)
104+
IF(NOT HAVE_WCSDUP)
105+
SET(LIBEDIT_EXTRA_SOURCES ${LIBEDIT_EXTRA_SOURCES} np/wcsdup.c)
106+
ENDIF()
107+
103108
# Generate headers
104109
FOREACH(SRCBASENAME vi emacs common)
105110
SET(SRC ${CMAKE_CURRENT_SOURCE_DIR}/${SRCBASENAME}.c)
@@ -152,22 +157,25 @@ ${CURSES_INCLUDE_PATH}
152157
SET(LIBEDIT_SOURCES
153158
chared.c
154159
el.c
160+
eln.c
155161
history.c
162+
historyn.c
156163
map.c
157164
prompt.c
158165
readline.c
159166
search.c
160167
tokenizer.c
168+
tokenizern.c
161169
vi.c
162170
common.c
163171
emacs.c
164172
hist.c
165-
key.c
173+
keymacro.c
166174
parse.c
167175
read.c
168176
refresh.c
169177
sig.c
170-
term.c
178+
terminal.c
171179
tty.c
172180
filecomplete.c
173181
${CMAKE_CURRENT_BINARY_DIR}/help.c

cmd-line-utils/libedit/README

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ An approximate method to merge from upstream is:
22

33
# Fetch latest from upstream (we also include some compat stuff)
44
$ CVS_RSH=ssh; export CVS_RSH
5-
$ CVSROOT="anoncvs@stripped:/cvsroot"
5+
$ CVSROOT="anoncvs@anoncvs.netbsd.org:/cvsroot"
66
$ cvs co -d libedit -P src/lib/libedit
77
$ mkdir libedit/np
88
$ for f in src/common/lib/libc/string/strlcat.c \
@@ -24,13 +24,13 @@ An approximate method to merge from upstream is:
2424

2525
# Rename files to match our naming
2626
$ mv makelist makelist.sh
27-
$ mv term.h el_term.h
27+
$ mv terminal.h el_terminal.h
2828

2929
# Remove NetBSD-specific bits
3030
$ for file in $(find . -type f)
3131
> do
3232
> cp ${file} ${file}.orig
33-
> sed -e 's/#include "term.h"/#include "el_term.h"/g' \
33+
> sed -e 's/#include "terminal.h"/#include "el_terminal.h"/g' \
3434
> -e 's/sig_handler/el_sig_handler/g' \
3535
> -e 's/isprint/el_isprint/g' \
3636
> -e '/^__RCSID/d' \
@@ -42,9 +42,9 @@ then merge remaining bits by hand. All MySQL-specific changes should be
4242
marked with XXXMYSQL to make them easier to identify and merge. To generate
4343
a 'clean' diff against upstream you can use the above commands but use
4444

45-
cvs co -D "2009/02/06 20:09:00" [..]
45+
cvs co -D "2011/10/04 15:27:04" [..]
4646

4747
to fetch the baseline of most recent merge.
4848

49-
Please feed any fixes to Jonathan Perkin <jperkin@stripped> who will endeavour
50-
to merge them upstream and keep diffs minimal.
49+
Please feed any fixes to Jonathan Perkin <jonathan.perkin@oracle.com> who will
50+
endeavour to merge them upstream and keep diffs minimal.

0 commit comments

Comments
 (0)