diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-07-09 16:50:30 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-07-11 05:49:49 -0400 |
commit | ac42068ddeaae27d2cd5cfc4808915491e5097c7 (patch) | |
tree | eda7ced79e545b3fce7f6ca0d892d330e932f0a1 /src/mongo/db/exec/shard_filter.h | |
parent | 15c72c8570c63e2e6ba0a3d339a8286d0be604db (diff) | |
download | mongo-ac42068ddeaae27d2cd5cfc4808915491e5097c7.tar.gz |
SERVER-18084 Move code out of d_state.h/.cpp
Move the ShardingState/ShardedConnectionInfo classes out of d_state and
put them in separate sources under mongo/db.
No functional changes.
Diffstat (limited to 'src/mongo/db/exec/shard_filter.h')
-rw-r--r-- | src/mongo/db/exec/shard_filter.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/exec/shard_filter.h b/src/mongo/db/exec/shard_filter.h index cc99525bfcc..a61eefc2f23 100644 --- a/src/mongo/db/exec/shard_filter.h +++ b/src/mongo/db/exec/shard_filter.h @@ -28,14 +28,12 @@ #pragma once - #include "mongo/db/exec/plan_stage.h" -#include "mongo/db/jsobj.h" -#include "mongo/db/record_id.h" -#include "mongo/s/d_state.h" namespace mongo { +class CollectionMetadata; + /** * This stage drops documents that didn't belong to the shard we're executing on at the time of * construction. This matches the contract for sharded cursorids which guarantees that a @@ -73,7 +71,9 @@ namespace mongo { */ class ShardFilterStage : public PlanStage { public: - ShardFilterStage(const CollectionMetadataPtr& metadata, WorkingSet* ws, PlanStage* child); + ShardFilterStage(const std::shared_ptr<CollectionMetadata>& metadata, + WorkingSet* ws, + PlanStage* child); virtual ~ShardFilterStage(); virtual bool isEOF(); @@ -107,7 +107,7 @@ private: // Note: it is important that this is the metadata from the time this stage is constructed. // See class comment for details. - const CollectionMetadataPtr _metadata; + const std::shared_ptr<CollectionMetadata> _metadata; }; } // namespace mongo |