File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ builddir=""
24
24
ldata=" @localstatedir@"
25
25
langdir=" "
26
26
srcdir=" "
27
- log_error=" "
28
27
29
28
args=" "
30
29
defaults=" "
@@ -557,12 +556,20 @@ else
557
556
filter_cmd_line=" cat"
558
557
fi
559
558
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 "
563
566
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 " ` " \)
565
568
then
569
+ if test -n " $verbose "
570
+ then
571
+ echo " resetting log-error '$log_error ' because no write access"
572
+ fi
566
573
log_error=" "
567
574
args=" $args --skip-log-error"
568
575
fi
Original file line number Diff line number Diff line change @@ -2419,7 +2419,6 @@ static void buf_flush_page_cleaner()
2419
2419
break ;
2420
2420
2421
2421
const ulint dirty_blocks= UT_LIST_GET_LEN (buf_pool.flush_list );
2422
- ut_ad (dirty_blocks);
2423
2422
/* We perform dirty reads of the LRU+free list lengths here.
2424
2423
Division by zero is not possible, because buf_pool.flush_list is
2425
2424
guaranteed to be nonempty, and it is a subset of buf_pool.LRU. */
You can’t perform that action at this time.
0 commit comments