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

warning C4101: 'wce': unreferenced local variable in write_conflict_exception.h

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.5.10
    • Affects Version/s: 3.5.9
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-07-10, Sharding 2017-07-31

      The WriteConflictException::logAndBackoff method is static, but is called through an instance of WriteConflictException, which results in the following warning under MSVC:

      E:\workspace\mongo\src\mongo/db/concurrency/write_conflict_exception.h(83): warning C4101: 'wce': unreferenced local variable
      src\mongo\db\read_concern.cpp(255): note: see reference to function template instantiation 'void mongo::writeConflictRetry<mongo::waitForLinearizableReadConcern::<lambda_eaac132ec26422de040f3692c41c1eb4>>(mongo::OperationContext *,mongo::StringData,mongo::StringData,F &&)' being compiled
              with
              [
                  F=mongo::waitForLinearizableReadConcern::<lambda_eaac132ec26422de040f3692c41c1eb4>
              ]
      [643/691] CXX build\ninja\mongo\db\exec\index_scan.obj
      

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: