summaryrefslogtreecommitdiff
path: root/src/mongo/base/initializer.cpp
AgeCommit message (Collapse)Author
2024-05-28SERVER-90910 Suppress log line when --version flag is specified (#22632)Erin McNulty
GitOrigin-RevId: db70b67ada51fd8e27d6aedd1471d263e75eeb7e
2024-05-22SERVER-89912 Make mongo initializers ordering reproducible (#21625)Erin McNulty
Co-authored-by: Billy Donahue <BillyDonahue@users.noreply.github.com> GitOrigin-RevId: 93eb27db9578e595a293c0138dbce991bc26af48
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2022-07-07SERVER-9434 Audit and Normalize Process Exit CodesMatt Kneiser
- Put all references to ExitCode enumerators under an enum class to namespace all the enumerators and avoid polluting the mongo namespace with possible naming collisions. - Added magic-number exit codes to exit_code.h like 50 & 51 (LauncherMiddleError & LauncherError respectively). - Reserved a range of exit codes to account for FreeBSD's usage of 64-78. - Renamed all enums with removal of EXIT_ which could conflict or get confused with built-in macros. - camelCased all ExitCode enum values. - Added the generic - ExitCode::fail - for returning 1 as failure. - Added explicit dependency on the exit_code.h header for all files using ExitCode's. - Removed all references to implementation-defined exit codes like EXIT_FAILURE and EXIT_SUCCESS. - Narrowed return values of the shell's undocumented quit() argument to portable values within 0-255, 0/ExitCode::clean otherwise. - Deprecated 8 unused ExitCode's - java - oomMalloc - oomRealloc - fs - clockSkew - windowsServiceStop - possibleCorruption - test - Wrapped the 2 Windows-only ExitCode's in #ifdef's - ntServiceError - windowsServiceStop
2022-05-06SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includesBilly Donahue
2021-05-04SERVER-56585 replace MONGO_COMPILER_VARIABLE_UNUSED with c++17 attribute ↵Benety Goh
maybe_unused (.cpp files only)
2020-12-08SERVER-40811 make initializers throwyBilly Donahue
- Consolidate init-related headers (just init.h and initializer.h) - Factor out a separate DependencyGraph component - Remove MONGO_DEFAULT_PREREQUISITES, MONGO_NO_PREREQUISITES, MONGO_NO_DEPENDENTS. - Document the role of the "default" initializer.
2020-06-11SERVER-48367 Remove all _envp usageBilly Donahue
2020-05-18SERVER-46881 Forbid adding nodes to initializer graph after starting ↵Kevin Pulo
initializer execution
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-05-02SERVER-34794 Construct the global ServiceContext inside a MONGO_INITIALIZERAndy Schwerin
2018-03-26SERVER-30170 Embedded can now shutdown and re-initialize.Henrik Edin
- ServiceContext* is now closer to be an instance context for the database. We still don't support multiple instances but I wrote the new code with this in mind. Teardown and reinitialize then becomes a matter of being able to delete and re-create the ServiceContext*. - Use the new MONGO_INITIALIZER that supports deinit/reinit to be able to re-initialize global systems that are decorations on ServiceContext. - Move creation/destruction of ServiceContext* out of MONGO_INITIALIZER. This so we can hold an exclusive lock during as much as possible of the shutdown (like how mongod does) - New ServiceContext registrer where we can link in different implementations of ServiceContext (replaces the SetGlobalEnvironment MONGO_INITIALIZER) - As a result the SetGlobalEnvironment prerequisite for MONGO_INITIALIZERs is gone. - The ServiceContext is passed to runGlobalInitializers, put in InitializationContext/DeinitializationContext so the initializers know which context they operate on.
2018-03-12SERVER-33629 Deinitialization support for MONGO_INITIALIZER. Done via the ↵Henrik Edin
GlobalInitializerRegisterer instead of macros. Deinitialization executes in reverse order from initialization.
2016-05-28SERVER-23971 Clang-Format codeMark Benvenuto
2015-06-20SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto
2014-10-03SERVER-15504 Flow all calls to _exit through quickExitAndrew Morrow
2014-05-16SERVER-13264 Move Apache-licensed files to AGPLIan Whalen
Also update generators.
2013-09-05SERVER-8510 Remove configuration variable manager and add option group for ↵Shaun Verch
command line parsing
2013-05-23SERVER-9768 create non-dying entry point for running initializers, for use ↵Eric Milkie
by C++ driver users
2013-05-02Handle exceptions in initializers more gracefullyAndrew Morrow
2012-11-05fix C++ driver compileEric Milkie
2012-09-25SERVER-5112 Introduce runGlobalInitializers(), macros and tools for global ↵Andy Schwerin
initializer declaration. These utilities simplify adding global (process-wide) initializers that run at the beginning of main(). Also, run the global initializers in the main() of unittests.
2012-09-25SERVER-5112 Initializer type and test.Andy Schwerin