-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.0.6
-
Component/s: Internal Code
-
ALL
Although highly unlikely, time(0) can return a value of -1. This value is occasionally set during static initialization. For example, see:
dbwebserver.cpp:L46 time_t started = time(0);
Tangentially, this specific variable is used by the replication logic in health.cpp and consensus.cpp, so dbwebserver.cpp probably isn't the best place to initialize.
- depends on
-
SERVER-5112 Need a better story for startup-time initialization of C++ modules.
- Closed
- is related to
-
SERVER-4740 Use monotonic clock sources for Timer
- Closed