File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -802,16 +802,19 @@ os_file_handle_error_cond_exit(
802
802
is better to ignore on_error_silent and print an error message
803
803
to the log. */
804
804
805
+ if (should_exit || !on_error_silent) {
806
+ fprintf (stderr,
807
+ " InnoDB: Operation %s to file %s and at line %ld\n " ,
808
+ operation, file, line);
809
+ }
810
+
805
811
if (should_exit || !on_error_silent) {
806
812
ib_logf (IB_LOG_LEVEL_ERROR, " File %s: '%s' returned OS "
807
813
" error " ULINTPF " .%s" , name ? name : " (unknown)" ,
808
814
operation, err, should_exit
809
815
? " Cannot continue operation" : " " );
810
816
}
811
817
812
- fprintf (stderr,
813
- " InnoDB: at file %s and at line %ld\n " , file, line);
814
-
815
818
if (should_exit) {
816
819
exit (1 );
817
820
}
Original file line number Diff line number Diff line change @@ -871,8 +871,11 @@ os_file_handle_error_cond_exit(
871
871
is better to ignore on_error_silent and print an error message
872
872
to the log. */
873
873
874
- fprintf (stderr,
875
- " InnoDB: at file %s and at line %ld\n " , file, line);
874
+ if (should_exit || !on_error_silent) {
875
+ fprintf (stderr,
876
+ " InnoDB: Operation %s to file %s and at line %ld\n " ,
877
+ operation, file, line);
878
+ }
876
879
877
880
if (should_exit || !on_error_silent) {
878
881
ib_logf (IB_LOG_LEVEL_ERROR, " File %s: '%s' returned OS "
You can’t perform that action at this time.
0 commit comments