Consolidate logging checks in RecoveryUnit::_executeCommitHandlers

XMLWordPrintableJSON

    • Storage Execution NAMER
    • Fully Compatible
    • Execution Team 2023-10-30
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      In RecoveryUnit::_executeCommitHandlers, we call LOG2_DEBUG in two loops. This results in a small overhead to check if logging is enabled in each iteration of the loop. We should check if logging is enabled once before the loop.

      POC: https://github.com/10gen/mongo/commit/6e3417d8c572bbaf17b2909594b36f227937b3ef

            Assignee:
            Wei Hu
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: