MONGO_WRITE_CONFLICT_RETRY_LOOP_BEGIN is a macro

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Nathan Myers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: