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

refactor "sysprofile" util and command

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2024-11-25, QE 2024-12-09

      Currently the sysprofile command is defined in db/commands/test_commands.cpp.
      It is (and I think it should remain) the sole user of the util/sysprofile.h and util/sysprofile.cpp code.

      I propose that we:

      • remove util/sysprofile.h
      • move the "sysprofile" command class out into its own source file: db/commands/sysprofile.cpp.
      • inline the contents of util/sysprofile.cpp into an unnamed namespace at the top of db/commands/sysprofile.cpp .
      • QE would own the new db/commands/sysprofile.cpp file.

            Assignee:
            mihai.andrei@mongodb.com Mihai Andrei
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: