Details
-
Bug
-
Status: Backlog
-
Major - P3
-
Resolution: Unresolved
-
2.0.6
-
None
-
ALL
Description
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.
Attachments
Issue Links
- 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
-