Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4617

Explore alternatives to X macros in mongoc-rpc.c

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.24.0, 1.25.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The X macro pattern used by mongoc-rpc-private.h and mongoc-rpc.c to define structs and their corresponding gather/printf/swab_(to/from)_le/scatter functions has been a continued source of frustration when attempting to debug RPC function behavior. As we continue to improve OP_MSG support and move away from legacy opcodes, it may be worth refactoring this component to improve readability and the debugging experience.

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            ezra.chung@mongodb.com Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: