summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_metadata.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-28992 Cleanup and remove unused code from write commandsKaloian Manassiev2017-12-291-5/+0
| | | | | | | | | | | | | | No functional changes, just getting rid of some unnecessary overhead. * Get rid of the extra TargetedBatchSizeMap during write command processing * Do not use pointers in the write commands error tracking * Remove unused code from the commands parsing * Get rid of unused code from the write commands tests * Make the write commands targeter return actual ShardEndpoint(s) instead of populating arrays of pointers. This saves both on memory allocations and makes the code simpler to follow. (cherry picked from commit 890051d8166e668442aff70cfcde3cb71ae6115f) (cherry picked from commit 10e3ce2d905ca3afc1e5949da2daa3353740171a) (cherry picked from commit 98f30b75b31c54464d5a907f435c15121a6c5353)
* SERVER-31056 Remove all usages of the default constructor of ↵Kaloian Manassiev2017-12-081-30/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ScopedCollectionMetadata outside of MetadataManager Contains the combined backport of multiple commits listed below. SERVER-31056 Cleanup MetadataManager and CollectionMetadata No functional changes, only cleanup to improve readability. * Removes unused code * Improve comments * Hide functionality, which doesn't need to be public (cherry picked from commit 88fa04b3791d1e53444601432677bb0cf86dc293) SERVER-31056 Make CollectionMetadata immutable It shouldn't contain state internal to the metadata manager. (cherry picked from commit b732abe6b1295740c3a5799c5903f84cd1857347) SERVER-31056 Remove usages of ScopedCollectionMetadata default constructor (cherry picked from commit 95e95613412c33b52bb8a514751550c2447526d4) SERVER-31056 Remove all usages of the ScopedCollectionMetadata default constructor With this commit, only the MetadataManager is allowed to instantiate empty ScopedCollectionMetadata objects. (cherry picked from commit 762765c80b005375c3c3b893772c7284271598ea) SERVER-31056 Remove the KeyRange type from non-test code (cherry picked from commit d5be73dbe4d28211994746dc1f5b47fb840ccdbd) SERVER-31056 Do not uassert with code StaleConfig The StaleConfig error code is interpreted in a special way and it requires the presence of StaleConfigException. Because of this we should never uassert with it directly. (cherry picked from commit 4fcaef90b1ca91b4806bace87da568565d5633c9)
* SERVER-31191 Plumb Collection UUIDs through catalog cacheNathan Myers2017-10-171-0/+4
|
* SERVER-29817 Move construction of CollectionMetadata data structures out of ↵Andy Schwerin2017-07-121-12/+16
| | | | ShardingState.
* SERVER-28841 (forward-port) simpler CollectionMetadata lifetime managementNathan Myers2017-05-181-1/+12
|
* SERVER-27921 New Range DeleterNathan Myers2017-04-201-36/+21
|
* SERVER-27681 Remove duplicated ShardKeyPattern functionality from ↵Kaloian Manassiev2017-03-221-8/+4
| | | | CollectionMetadata
* SERVER-27681 Use CatalogCache to load metadata on shardsKaloian Manassiev2017-03-191-55/+10
| | | | | | | This change gets rid of the MetadataLoader in place of using the CatalogCache for loading chunk metadata on shards. This ensures that the same concurrency control and rate limiting applies on mongos and mongod and obviates the need for having different kinds of ChunkDiffer.
* SERVER-27975 Remove many uses of `OwnedPointerVector`ADAM David Alan Martin2017-03-101-3/+3
| | | | | This removes many of the remaining uses of the deprecated `OwnedPointerVector` type.
* SERVER-27510 remove chunk version check in moveChunk and splitChunkEsha Maharishi2017-01-101-3/+1
|
* SERVER-25665 Make splitChunk and moveChunk commands use 'chunkVersion'Kaloian Manassiev2016-11-021-4/+13
| | | | | | This change makes the collection metadata on the shard also include the chunk version and makes the splitChunk and moveChunk commands use it when checking for consistency.
* SERVER-25665 Cleanup chunk cache refreshKaloian Manassiev2016-10-271-1/+0
| | | | | No functional changes, just getting rid of some unused code and tightening assertions.
* SERVER-25665 Remove cloneSplit and cloneMerge from CollectionMetadataKaloian Manassiev2016-10-101-26/+3
|
* SERVER-26471 Always incrementally refresh metadata after committing chunk ↵Kaloian Manassiev2016-10-071-9/+0
| | | | | | migration Also introduces a failpoint and js test to exercise the race condition.
* SERVER-24569 Maintain rangesToClean and metadataInUse on chunk migrationsKaloian Manassiev2016-07-211-11/+7
| | | | | This change rewrites the collection metadata refresh mechanism and puts it entirely under the metadata manager.
* SERVER-24569 Cleanup CollectionMetadata and MetadataManagerKaloian Manassiev2016-07-191-9/+9
|
* SERVER-22659 removing _uncommittedMetadata local variableDianna Hohensee2016-05-181-0/+5
|
* SERVER-23493 Cleanup CollectionMetadata cloneSplit and cloneMergeKaloian Manassiev2016-04-051-14/+11
| | | | | Get rid of the out parameter and make them use invariant plus a failed status.
* SERVER-23493 Cleanup CollectionMetadata::clonePlusChunkKaloian Manassiev2016-04-041-40/+16
| | | | | | The clonePlusChunk method is only used for testing purposes, so there is no need for it to uassert. Add invariands and remove an unnecessary out parameter.
* Revert "SERVER-23493 Cleanup CollectionMetadata::clonePlusChunk"Kaloian Manassiev2016-04-041-16/+40
| | | | This reverts commit 69e76a1c722dc869e5e49e388298896460a173b8.
* SERVER-23493 Cleanup CollectionMetadata::clonePlusChunkKaloian Manassiev2016-04-041-40/+16
| | | | | | The clonePlusChunk method is only used for testing purposes, so there is no need for it to uassert. Add invariands and remove an unnecessary out parameter.
* SERVER-23296 Move pending chunk management under MigrationDestinationManagerKaloian Manassiev2016-03-231-8/+2
| | | | | | Moves the code, which manipulates the pending chunk data to reside under the migration destination manager instead of the global sharding state and makes it use the collection sharding state instead of the global map.
* SERVER-22656 Tighten assertions for move chunk donateKaloian Manassiev2016-03-221-8/+5
| | | | | | Moves the shard version checking during move chunk to happen at the time of metadata clone instead of being decided in advance and tightens the associated assertions.
* SERVER-18084 Move mongod metadata management to be under mongo/dbKaloian Manassiev2015-07-111-0/+318
Moves the metadata management code specific to mongod under the mongo/db directory along with its tests.