diff options
author | Marcos José Grillo Ramírez <marcos.grillo@10gen.com> | 2019-10-29 12:07:54 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-29 12:07:54 +0000 |
commit | 81f52a69c92d27034ef3a9bf411fb463cab7643e (patch) | |
tree | 37a57eaa120a6a3c71a515a7f39dfceb21ee8cee /src/mongo/db/sessions_collection_mock.h | |
parent | af1a00179bd00083fd6d4c3af34140e4ba2aac6d (diff) | |
download | mongo-81f52a69c92d27034ef3a9bf411fb463cab7643e.tar.gz |
SERVER-42508 Convert SessionsCollection to throw instead of return status
Change the return value of checkSessionsCollectionExists from Status to void and throws exception on error
Diffstat (limited to 'src/mongo/db/sessions_collection_mock.h')
-rw-r--r-- | src/mongo/db/sessions_collection_mock.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/sessions_collection_mock.h b/src/mongo/db/sessions_collection_mock.h index e4352249d48..ae118648650 100644 --- a/src/mongo/db/sessions_collection_mock.h +++ b/src/mongo/db/sessions_collection_mock.h @@ -108,9 +108,7 @@ public: void setupSessionsCollection(OperationContext* opCtx) override {} - Status checkSessionsCollectionExists(OperationContext* opCtx) override { - return Status::OK(); - } + void checkSessionsCollectionExists(OperationContext* opCtx) override {} Status refreshSessions(OperationContext* opCtx, const LogicalSessionRecordSet& sessions) override { |