-
Type: Bug
-
Resolution: Fixed
-
Priority: Trivial - P5
-
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