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

small improvements to rpc/message.h ergonomics

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Service Arch

    Description

      Convert some old `const char*` to `StringData`.
      (came up in a code review)

      Provide a `fmt::formatter` and `operator<<` for these so we don't have to call the `${X}ToString` functions much at all. Rename them just `toStringData` and let overloading do the spelling work.

      Upgrade msgasserted.
      Upgrade NetworkOp from `enum` to `enum class`.

      Rename MSGHEADER namespace and MsgData namespace to comply with namespace convention.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: