Skip to content

Commit 6ce6063

Browse files
committed
Remove wantShardName from ParsedProjection.
1 parent 1a6a031 commit 6ce6063

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/mongo/db/query/parsed_projection.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ Status ParsedProjection::make(OperationContext* opCtx,
6060
bool wantGeoNearPoint = false;
6161
bool wantGeoNearDistance = false;
6262
bool wantSortKey = false;
63-
bool wantShardName = false;
6463

6564
// Until we see a positional or elemMatch operator we're normal.
6665
ArrayOpType arrayOpType = ARRAY_OP_NORMAL;
@@ -176,8 +175,6 @@ Status ParsedProjection::make(OperationContext* opCtx,
176175
wantGeoNearPoint = true;
177176
} else if (e2.valuestr() == QueryRequest::metaSortKey) {
178177
wantSortKey = true;
179-
} else if (e2.valuestr() == QueryRequest::metaShardName) {
180-
wantShardName = true;
181178
}
182179

183180
// Of the $meta projections, only sortKey can be covered.
@@ -274,7 +271,6 @@ Status ParsedProjection::make(OperationContext* opCtx,
274271
pp->_wantGeoNearPoint = wantGeoNearPoint;
275272
pp->_wantGeoNearDistance = wantGeoNearDistance;
276273
pp->_wantSortKey = wantSortKey;
277-
pp->_wantShardName = wantShardName;
278274

279275
// If it's possible to compute the projection in a covered fashion, populate _requiredFields
280276
// so the planner can perform projection analysis.

src/mongo/db/query/parsed_projection.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ class ParsedProjection {
104104
return _wantSortKey;
105105
}
106106

107-
bool wantShardName() const {
108-
return _wantShardName;
109-
}
110-
111107
/**
112108
* Returns true if the element at 'path' is preserved entirely after this projection is applied,
113109
* and false otherwise. For example, the projection {a: 1} will preserve the element located at
@@ -196,8 +192,6 @@ class ParsedProjection {
196192
// Whether this projection includes a sortKey meta-projection.
197193
bool _wantSortKey = false;
198194

199-
bool _wantShardName = false;
200-
201195
bool _hasDottedFieldPath = false;
202196
};
203197

0 commit comments

Comments
 (0)