- 
    Type:Bug 
- 
    Resolution: Fixed
- 
    Priority:Major - P3 
- 
    Affects Version/s: None
- 
    Component/s: Replication
- 
        Fully Compatible
- 
        ALL
- 
        Repl 2018-08-13
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
Pointer to a local stack variable returned or used outside scope
Defect 104941 (STATIC_C)
  Checker RETURN_LOCAL (subcategory none)
  File:  /src/mongo/db/repl/topology_coordinator.cpp
  Function _ZN5mongo4repl19TopologyCoordinator23_getReplSetStatusStringB5cxx11Ev
    /src/mongo/db/repl/topology_coordinator.cpp, line: 1378
    Assigning: "rsStatusArgs.initialSyncStatus" = "mongo::BSONObj()" (address of temporary variable of type "mongo::BSONObj"). 
        ReplSetStatusArgs rsStatusArgs{Date_t::now(), 0U, OpTime(), BSONObj(), boost::none};
    /src/mongo/db/repl/topology_coordinator.cpp, line: 1378
    Temporary variable of type "mongo::BSONObj" goes out of scope. 
        ReplSetStatusArgs rsStatusArgs{Date_t::now(), 0U, OpTime(), BSONObj(), boost::none};
  File:  /src/mongo/db/repl/topology_coordinator.cpp
  Function _ZN5mongo4repl19TopologyCoordinator23_getReplSetStatusStringB5cxx11Ev
    /src/mongo/db/repl/topology_coordinator.cpp, line: 1378
    Assigning: "rsStatusArgs.readConcernMajorityOpTime" = "mongo::repl::OpTime()" (address of temporary variable of type "mongo::repl::OpTime"). 
        ReplSetStatusArgs rsStatusArgs{Date_t::now(), 0U, OpTime(), BSONObj(), boost::none};
    /src/mongo/db/repl/topology_coordinator.cpp, line: 1378
    Temporary variable of type "mongo::repl::OpTime" goes out of scope. 
        ReplSetStatusArgs rsStatusArgs{Date_t::now(), 0U, OpTime(), BSONObj(), boost::none};
- is caused by
- 
                    SERVER-32906 Improve logging around elections -         
- Closed
 
-