diff options
author | Marcos José Grillo Ramírez <marcos.grillo@10gen.com> | 2019-10-30 16:03:52 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-30 16:03:52 +0000 |
commit | 46ab40ac2c604c2fb09488856cadbb751df2572f (patch) | |
tree | b4c293b2ec28362b4c22e6449ac19946195ca68a /src/mongo/db/sessions_collection_standalone.h | |
parent | 1c4b9635631a8408b626fa9259d1c83860c0c054 (diff) | |
download | mongo-46ab40ac2c604c2fb09488856cadbb751df2572f.tar.gz |
SERVER-42508 Convert SessionsCollection to throw instead of return status
Change the remaining public functions: refreshSessions, removeRecords and findRemovedSessions
Diffstat (limited to 'src/mongo/db/sessions_collection_standalone.h')
-rw-r--r-- | src/mongo/db/sessions_collection_standalone.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/sessions_collection_standalone.h b/src/mongo/db/sessions_collection_standalone.h index 8c6f8d1f91a..d8de38502ca 100644 --- a/src/mongo/db/sessions_collection_standalone.h +++ b/src/mongo/db/sessions_collection_standalone.h @@ -57,16 +57,15 @@ public: * Updates the last-use times on the given sessions to be greater than * or equal to the current time. */ - Status refreshSessions(OperationContext* opCtx, - const LogicalSessionRecordSet& sessions) override; + void refreshSessions(OperationContext* opCtx, const LogicalSessionRecordSet& sessions) override; /** * Removes the authoritative records for the specified sessions. */ - Status removeRecords(OperationContext* opCtx, const LogicalSessionIdSet& sessions) override; + void removeRecords(OperationContext* opCtx, const LogicalSessionIdSet& sessions) override; - StatusWith<LogicalSessionIdSet> findRemovedSessions( - OperationContext* opCtx, const LogicalSessionIdSet& sessions) override; + LogicalSessionIdSet findRemovedSessions(OperationContext* opCtx, + const LogicalSessionIdSet& sessions) override; }; } // namespace mongo |