| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
every unit test.
This patch does several loosely related and surprisingly hard to separate things.
1.) Make the ServiceContext class final
2.) Create a mechanism, called ConstructorActions, for running methods on
ServiceContexts immediately after they're built and immediately before they're
destroyed.
3.) Introduce / improve test fixture base classes for tests, giving them fresh
ServiceContext instances for each test case. There is one fixture for tests that
need a storage engine and another for those that do not.
4.) Make several remaining global variables SC decorations in support of (3)
5.) Replace many MONGO_INITIALIZERS that access getGlobalServiceContext with the
new constructor-actions system, which is needed for (3.)
6.) Fix up tests to use the fixtures from (3) and fix tests that silently used
different service contexts in together in a technically illegal fashion that now
breaks.
7.) Utilize (2) as necessary to simplify initialization of new ServiceContexts,
simplifying the fixtures in (3).
|
| |
|
|
|
|
|
| |
Also gets rid of most usages of the std::string variant of
CollectionShardingState::get.
|
| |
|
|
|
|
| |
This reverts commit d779870e5d4744cbcc402cba2a77f8d892bed0ef.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Currently this value is ignored by the shard and it will be used by a
subsequent change.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This change makes the shard implementation of the 'moveChunk' command join
a currently running migration if that migration has exactly the same
arguments as the call. This allows retriability of this command by the
balancer.
In addition, it makes the moveChunk command report success if the
specified chunk is already located on the desired destination shard.
|
|
|