diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 00:22:50 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:02 -0400 |
commit | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch) | |
tree | 3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/db/exec/eof.cpp | |
parent | 01965cf52bce6976637ecb8f4a622aeb05ab256a (diff) | |
download | mongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/db/exec/eof.cpp')
-rw-r--r-- | src/mongo/db/exec/eof.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/mongo/db/exec/eof.cpp b/src/mongo/db/exec/eof.cpp index 1766c9b7a3e..4318e6ad9f6 100644 --- a/src/mongo/db/exec/eof.cpp +++ b/src/mongo/db/exec/eof.cpp @@ -34,54 +34,54 @@ namespace mongo { - using std::vector; +using std::vector; - // static - const char* EOFStage::kStageType = "EOF"; +// static +const char* EOFStage::kStageType = "EOF"; - EOFStage::EOFStage() : _commonStats(kStageType) { } +EOFStage::EOFStage() : _commonStats(kStageType) {} - EOFStage::~EOFStage() { } +EOFStage::~EOFStage() {} - bool EOFStage::isEOF() { - return true; - } +bool EOFStage::isEOF() { + return true; +} - PlanStage::StageState EOFStage::work(WorkingSetID* out) { - ++_commonStats.works; - // Adds the amount of time taken by work() to executionTimeMillis. - ScopedTimer timer(&_commonStats.executionTimeMillis); - return PlanStage::IS_EOF; - } +PlanStage::StageState EOFStage::work(WorkingSetID* out) { + ++_commonStats.works; + // Adds the amount of time taken by work() to executionTimeMillis. + ScopedTimer timer(&_commonStats.executionTimeMillis); + return PlanStage::IS_EOF; +} - void EOFStage::saveState() { - ++_commonStats.yields; - } +void EOFStage::saveState() { + ++_commonStats.yields; +} - void EOFStage::restoreState(OperationContext* opCtx) { - ++_commonStats.unyields; - } +void EOFStage::restoreState(OperationContext* opCtx) { + ++_commonStats.unyields; +} - void EOFStage::invalidate(OperationContext* txn, const RecordId& dl, InvalidationType type) { - ++_commonStats.invalidates; - } +void EOFStage::invalidate(OperationContext* txn, const RecordId& dl, InvalidationType type) { + ++_commonStats.invalidates; +} - vector<PlanStage*> EOFStage::getChildren() const { - vector<PlanStage*> empty; - return empty; - } +vector<PlanStage*> EOFStage::getChildren() const { + vector<PlanStage*> empty; + return empty; +} - PlanStageStats* EOFStage::getStats() { - _commonStats.isEOF = isEOF(); - return new PlanStageStats(_commonStats, STAGE_EOF); - } +PlanStageStats* EOFStage::getStats() { + _commonStats.isEOF = isEOF(); + return new PlanStageStats(_commonStats, STAGE_EOF); +} - const CommonStats* EOFStage::getCommonStats() const { - return &_commonStats; - } +const CommonStats* EOFStage::getCommonStats() const { + return &_commonStats; +} - const SpecificStats* EOFStage::getSpecificStats() const { - return nullptr; - } +const SpecificStats* EOFStage::getSpecificStats() const { + return nullptr; +} } // namespace mongo |