SERVER-13961 Move clean shutdown logic from dbexit to exitCleanly only

All remaining places, which call dbexit, outside of repl are in response
to unhandled exceptions, so it is not safe to call commit.

The repl calls happen at secondary replica startup time, so no writes
would have happened, so there should not be any data to throw out outside
of replication bookkeeping data.
SERVER-13961 Remove TLS LockState accesses from repl
SERVER-13961 Add OperationContext argument to Client::Context

Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.

This is in preparation for removing LockState from Client.
Revert "SERVER-13961 Add OperationContext argument to Client::Context"

This reverts commit 52edab726185cbba1401cb46de221fb3d1cb0408.
SERVER-13961 Add OperationContext argument to Client::Context

Time tracking and database access in Client::Context require access to the
OperationContext. Adding it as argument.

This is in preparation for removing LockState from Client.
SERVER-14388 Fixup detection of yaml-cpp system library

The use of --use-system-yaml was incorrectly searching for yaml-cpp
under the 'yaml' name.

Search for yaml-cpp instead.

Fixes: SERVER-14388

Signed-off-by: Benety Goh <benety@mongodb.com>
SERVER-10190 reformat start-stop-daemon command line with newlines
SERVER-10190 Upstart conf: use pidfile, not 'ps'

The default upstart config installed with MongoDB doesn't provide the
`--pidfile` or `--make-pidfile` options to `start-stop-daemon`, which
means it determines whether or not MongoDB is running by inspecting the
process table to see if there are any instances of "mongod" running.

This is a pretty crude mechanism, and we can make it substantially more
reliable (not susceptible to mongod instances running inside LXC
containers or similar) by simply getting start-stop-daemon to write a
pidfile.
SERVER-9788 mongos does not respect secondary preferred after temporarily unavailable secondary
SERVER-14293 Skip exit logging test when using address sanitizer
Revert "SERVER-13961 Add OperationContext argument to Client::Context"

This reverts commit e1f5a39b1b625d04752be13f39c774e579b64cd8.
SERVER-5092 renamed LogTag to LogComponent
SERVER-5092 updated default log component in storage and networking subsystems
SERVER-5092 removed LogTag typedef and macros.

    These were used for backwards compatibility in source files that were
    declaring the default log tag/component using the old macros and log
    tags in logger::LogTag (now renamed to LogComponent).
SERVER-14350 validate distances for circular regions in $near/$within
SERVER-14367 Preparation for removing some implicit conversion and other methods of HostAndPort.

The setPort and implicit conversion operators are going away.  This path fixes their existing
users.
SERVER-14367 HostAndPort deinlining.

Moves bodies of most HostAndPort methods to hostandport.cpp.  Also, removes
setPort() and toString(false), and a handful of unused methods.

Removes dead / anachronistic behavior.
SERVER-14378: remove Database::_namespacesName
SERVER-14378: move listDatabases to its own file
SERVER-2442 SERVER-14378: add listCollections command