summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/idhack.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2015-07-16 15:21:19 -0400
committerMathias Stearn <mathias@10gen.com>2015-07-23 12:26:07 -0400
commit2fcf4314964f566efa546d6ec9c53bfaf78c2972 (patch)
tree9cb19f8cfebaef12373953eb85b0a4fd3bc7ccd0 /src/mongo/db/exec/idhack.h
parentd065c380ffc76fef63cf2fe7bacc439134ab39eb (diff)
downloadmongo-2fcf4314964f566efa546d6ec9c53bfaf78c2972.tar.gz
SERVER-19456 Use final designators where appropriate in PlanStages
Diffstat (limited to 'src/mongo/db/exec/idhack.h')
-rw-r--r--src/mongo/db/exec/idhack.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mongo/db/exec/idhack.h b/src/mongo/db/exec/idhack.h
index 19b12cbbc09..71f783431a1 100644
--- a/src/mongo/db/exec/idhack.h
+++ b/src/mongo/db/exec/idhack.h
@@ -43,7 +43,7 @@ class RecordCursor;
* A standalone stage implementing the fast path for key-value retrievals
* via the _id index.
*/
-class IDHackStage : public PlanStage {
+class IDHackStage final : public PlanStage {
public:
/** Takes ownership of all the arguments -collection. */
IDHackStage(OperationContext* txn,
@@ -53,29 +53,29 @@ public:
IDHackStage(OperationContext* txn, Collection* collection, const BSONObj& key, WorkingSet* ws);
- virtual ~IDHackStage();
+ ~IDHackStage();
- virtual bool isEOF();
- virtual StageState work(WorkingSetID* out);
+ bool isEOF() final;
+ StageState work(WorkingSetID* out) final;
- virtual void doSaveState();
- virtual void doRestoreState();
- virtual void doDetachFromOperationContext();
- virtual void doReattachToOperationContext(OperationContext* opCtx);
- virtual void doInvalidate(OperationContext* txn, const RecordId& dl, InvalidationType type);
+ void doSaveState() final;
+ void doRestoreState() final;
+ void doDetachFromOperationContext() final;
+ void doReattachToOperationContext(OperationContext* opCtx) final;
+ void doInvalidate(OperationContext* txn, const RecordId& dl, InvalidationType type) final;
/**
* ID Hack has a very strict criteria for the queries it supports.
*/
static bool supportsQuery(const CanonicalQuery& query);
- virtual StageType stageType() const {
+ StageType stageType() const final {
return STAGE_IDHACK;
}
std::unique_ptr<PlanStageStats> getStats();
- virtual const SpecificStats* getSpecificStats() const;
+ const SpecificStats* getSpecificStats() const final;
static const char* kStageType;