Commit e8d7e27f authored by unknown's avatar unknown

More after-merge fixes for merging MySQL 5.1.38 into MariaDB.


mysql-test/t/mysqldump.test:
  Make test case work when build directory is not world readable
  (this is the case for Buildbot checkouts).
mysys/my_getopt.c:
  Restore bugfix which was lost in previous merge.
storage/xtradb/buf/buf0flu.c:
  Fix extranous line caused by bad merge.
parent 2a4c97fc
...@@ -1982,6 +1982,9 @@ drop table if exists `load`; ...@@ -1982,6 +1982,9 @@ drop table if exists `load`;
create table `load` (a varchar(255)); create table `load` (a varchar(255));
--copy_file std_data/words.dat $MYSQLTEST_VARDIR/tmp/load.txt --copy_file std_data/words.dat $MYSQLTEST_VARDIR/tmp/load.txt
# LOAD DATA requires the file to be world-readable. This may not be true
# automatically, depending on how the build directory was created.
--chmod 0644 $MYSQLTEST_VARDIR/tmp/load.txt
--exec $MYSQL_IMPORT --ignore test $MYSQLTEST_VARDIR/tmp/load.txt --exec $MYSQL_IMPORT --ignore test $MYSQLTEST_VARDIR/tmp/load.txt
......
...@@ -656,8 +656,9 @@ static int setval(const struct my_option *opts, uchar* *value, char *argument, ...@@ -656,8 +656,9 @@ static int setval(const struct my_option *opts, uchar* *value, char *argument,
return EXIT_OUT_OF_MEMORY; return EXIT_OUT_OF_MEMORY;
break; break;
case GET_ENUM: case GET_ENUM:
if (((*(ulong *)result_pos)= pos= find_type(argument, opts->typelib, 2) - 1;
find_type(argument, opts->typelib, 2) - 1) < 0) (*(ulong *)result_pos)= pos;
if (pos < 0)
{ {
/* /*
Accept an integer representation of the enumerated item. Accept an integer representation of the enumerated item.
......
...@@ -1238,7 +1238,6 @@ buf_flush_LRU_recommendation(void) ...@@ -1238,7 +1238,6 @@ buf_flush_LRU_recommendation(void)
+ BUF_FLUSH_EXTRA_MARGIN) + BUF_FLUSH_EXTRA_MARGIN)
&& (distance < BUF_LRU_FREE_SEARCH_LEN)) { && (distance < BUF_LRU_FREE_SEARCH_LEN)) {
mutex_t* block_mutex;
if (!bpage->in_LRU_list) { if (!bpage->in_LRU_list) {
/* reatart. but it is very optimistic */ /* reatart. but it is very optimistic */
bpage = UT_LIST_GET_LAST(buf_pool->LRU); bpage = UT_LIST_GET_LAST(buf_pool->LRU);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment