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

Consolidate logging checks in RecoveryUnit::_executeCommitHandlers

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

      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@mongodb.com Wei Hu
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: