Replace LogoutCommandState with std::call_once

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • Fully Compatible
    • Security 2024-06-24, Security 2024-07-08, Security 2024-07-22, Security 2024-08-05, Security 2024-08-19, Security 2024-09-02
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      LogoutCommandState is a ServiceContext decoration that stores an atomic bool used to track whether logout has been called. logout uses this to emit deprecation warnings.

      Decorations are powerful but complicated. We should replace all of this with a magic static std::once_flag and a call to std::call_once.

            Assignee:
            Gabriel Marks
            Reporter:
            Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: