• Haidong Ji's avatar
    MDEV-17093: SOURCE_REVISION in log and handle_fatal_signal · af0ff8b4
    Haidong Ji authored
    MariaDB MDEV-12583 added `SOURCE_REVISION` variable that exposes the
    SHA1 of source code commit that the current running engine was built
    from. This info is useful for troubleshooting and debugging.
    
    This commit does the following:
    - addes the `SOURCE_REVISION` value into engine error log.
    - when a crash triggers handle_fatal_signal, the `SOURCE_REVISION` will
      be included in crash report.
    - resolves MDEV-20344: startup messages belong in stderr/error-log not
      stdout
    
    All new code of the whole pull request, including one or several files
    that are either new files or modified ones, are contributed under the
    BSD-new license.  I am contributing on behalf of my employer Amazon Web
    Services, Inc.
    af0ff8b4
signal_handler.cc 12.2 KB