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

MONGO_WRITE_CONFLICT_RETRY_LOOP_BEGIN is a macro

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.9
    • Affects Version/s: 3.5.7
    • Component/s: Concurrency
    • None
    • Fully Compatible
    • Sharding 2017-06-19

      db/concurrency/write_conflict_exception.h defines macros MONGO_WRITE_CONFLICT_RETRY_LOOP_BEGIN and MONGO_WRITE_CONFLICT_RETRY_LOOP_END that could much more cleanly, safely, and maintainably be a trivial function template.

      It would be better to deprecate these macros and define such a function template in that header.

            Assignee:
            nathan.myers Nathan Myers
            Reporter:
            nathan.myers Nathan Myers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: