Skip to content

Commit

Permalink
[upstream] PS-9071: Merge MySQL 8.3.0 (fix test_router_stacktrace tests)
Browse files Browse the repository at this point in the history
https://perconadev.atlassian.net/browse/PS-9071

Most of test_router_stacktrace tests expect to see my_print_stacktrace()
method in stacktrace to find out if stacktrace was provided. Recent
upstream changes in mysys/stacktrace.cc removed my_print_stacktrace()
from the stacktrace.

Updated stacktrace::full() invocation in my_print_stacktrace() not
to skip itself while printing stacktrace.
  • Loading branch information
oleksandr-kachan committed Apr 16, 2024
1 parent 53cffdc commit 2dd8b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysys/stacktrace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void my_print_stacktrace(const uchar *stack_bottom, ulong thread_stack) {
my_safe_printf_stderr("\n");
};
cookie_t cookie{.index = 0};
stacktrace::full(1, print_callback, error_callback, &cookie);
stacktrace::full(0, print_callback, error_callback, &cookie);
}
#elif defined(HAVE_BACKTRACE)

Expand Down

0 comments on commit 2dd8b05

Please sign in to comment.