Ensure all DocumentSource::getNext() implementations check for interrupt

XMLWordPrintableJSON

    • Fully Compatible
    • Query 2017-07-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Each implementation of the DocumentSource interface must override DocumentSource::getNext(), and any implementation of this method is required to check for interrupt during execution. This part of the contract is not enforced, so of course there are at least a few stages that do not follow it, such as $currentOp and $collStats.

      We should at least fix these two (and any others that are missing it), and consider making this contract enforceable, either through a test or through a non-virtual getNext() and a virtualized doGetNext() as we do for PlanStage::work() and PlanStage::doWork().

            Assignee:
            Martin Neupauer (Inactive)
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: