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

use-after-move: 'options' argument in StorageEngineImpl constructor

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
    • Fully Compatible
    • ALL
    • Execution Team 2020-07-27

      The uassert check in the StorageEngineImpl constructor reads the moved 'options' variable. This seems to be a violation of the use-after-move rule in C++.

      This check is only relevant to storage engines without --directoryperdb support.

            Assignee:
            bynn.lee@mongodb.com Bynn Lee
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: