WL#13178: Deprecate WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS

Affects: Server-8.0   —   Status: Complete

EXECUTIVE SUMMARY
=================

This worklog implements a deprecation warning when user engages the
function WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS.

BACKGROUND
==========

After this work the user will get a deprecation warning when using the
function WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS. The warning shall state
that he should use WAIT_FOR_EXECUTED_GTID_SET instead of
WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS. The former supersedes the latter.

- This function is superseded by WAIT_FOR_EXECUTED_GTID_SET.

- This function is restricted to the slave applier. If the slave
  applier is stopped the function returns an error.

- Its behaviour is not consistent. The function has a channel
  parameter, so that one can restrict waiting for GTIDs on that
  specific replication channel. But the implementation is a bit more
  loose than that [a1], in the sense that it waits on the channel, but
  then checks GTIDs against the global state. So, this is not
  intuitive and not really very useful.