Use-after-move in targetShardsAndAddMergeCursors()

XMLWordPrintableJSON

    • Query Optimization
    • ALL
    • v8.2, v8.0, v7.0, v6.0
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The targetShardsAndAddMergeCursors() function uses CollectionRouter::route to retry a pipeline that fails because of invalidated shard metadata. However, the first attempt to dispatch the pipeline {{std::move()}}s the readConcern, which means that subsequent attempts pass an empty readConcern, which gets interpreted as a request for the default readConcern.

            Assignee:
            Naafiyan Ahmed
            Reporter:
            Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: