Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87364

Replace LogoutCommandState with std::call_once

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Gabriel Marks
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: