Skip to content

Commit 221b5d7

Browse files
committed
Merge 10.11 into 11.0
2 parents 4c355d4 + faeca00 commit 221b5d7

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

scripts/mysql_install_db.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ builddir=""
2424
ldata="@localstatedir@"
2525
langdir=""
2626
srcdir=""
27-
log_error=""
2827

2928
args=""
3029
defaults=""
@@ -557,12 +556,20 @@ else
557556
filter_cmd_line="cat"
558557
fi
559558

560-
# Disable log error if the user don't have write access to the directory.
561-
# This is common when a user tries to install a personal mariadbd server
562-
if test -n $log_error
559+
# Disable log error if the user don't have right to write/create the file
560+
# This is common when a user tries to install a personal mariadbd server and
561+
# the global config in /etc is using --log-error.
562+
# The server will internally change log-error to stderr to stderr if it cannot
563+
# write the the log file. This code only disables the error message from a not
564+
# writable log-error, which can be confusing.
565+
if test -n "$log_error"
563566
then
564-
if test ! -w $log_error
567+
if test \( -e "$log_error" -a \! -w "$log_error" \) -o \( ! -e "$log_error" -a ! -w "`dirname "$log_error"`" \)
565568
then
569+
if test -n "$verbose"
570+
then
571+
echo "resetting log-error '$log_error' because no write access"
572+
fi
566573
log_error=""
567574
args="$args --skip-log-error"
568575
fi

storage/innobase/buf/buf0flu.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,6 @@ static void buf_flush_page_cleaner()
24192419
break;
24202420

24212421
const ulint dirty_blocks= UT_LIST_GET_LEN(buf_pool.flush_list);
2422-
ut_ad(dirty_blocks);
24232422
/* We perform dirty reads of the LRU+free list lengths here.
24242423
Division by zero is not possible, because buf_pool.flush_list is
24252424
guaranteed to be nonempty, and it is a subset of buf_pool.LRU. */

0 commit comments

Comments
 (0)