maria:bb-11.4-ycp-fix

Last commit made on 2024-02-05
Get this branch:
git clone -b bb-11.4-ycp-fix https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.4-ycp-fix
Repository:
lp:maria

Recent commits

36b5905... by Yuchen Pei <email address hidden>

[fixup] Spider: the MDEV-29718 fix requires use of spider_same_server_link

...for spider testcases where the remote data node is specified by a
server on the same server

98787fb... by Oleksandr "Sanja" Byelkin

fix after merge

00ba013... by Oleksandr "Sanja" Byelkin

Merge branch '11.4' into bb-11.4-release

6f7efd6... by Oleksandr "Sanja" Byelkin

Merge branch '11.3' into 11.4

04c9975... by Oleksandr "Sanja" Byelkin

Merge branch '11.2' into 11.3

79580f4... by Sergei Golubchik

Merge branch '11.1' into 11.2

2f5174e... by VladislavVaintroub

MDEV-33075 Resolve server shutdown issues on macOS, Solaris, and FreeBSD

This commit addresses multiple server shutdown problems observed on macOS,
Solaris, and FreeBSD:

1. Corrected a non-portable assumption where socket shutdown was expected
to wake up poll() with listening sockets in the main thread.

Use more robust self-pipe to wake up poll() by writing to the pipe's write
end.

2. Fixed a random crash on macOS from pthread_kill(signal_handler)
when the signal_handler was detached and the thread had already exited.

Use more robust `kill(getpid(), SIGTERM)` to wake up the signal handler
thread.

3. Made sure, that signal handler thread always exits once `abort_loop` is
set, and also calls `my_thread_end()` and clears `signal_thread_in_use`
when exiting.

This fixes warning "1 thread did not exit" by `my_global_thread_end()`
seen on FreeBSD/macOS when the process is terminated via signal.

Additionally, the shutdown code underwent light refactoring
for better readability and maintainability:
- Modified `break_connect_loop()` to no longer wait for the main thread,
  aligning behavior with Windows (since 10.4).
- Removed dead code related to the unused `USE_ONE_SIGNAL_HAND`
  preprocessor constant.
- Eliminated support for `#ifndef HAVE_POLL` in `handle_connection_sockets`
  This code is also dead, since 10.4

b6680e0... by Sergei Golubchik

Merge branch '11.0' into 11.1

6ef0b2e... by Sergei Golubchik

Merge branch '10.11' into 11.0

87e1372... by Sergei Golubchik

Merge branch '10.6' into 10.11