diff options
author | James Wahlin <james@mongodb.com> | 2018-03-27 16:27:34 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-03-28 09:15:21 -0400 |
commit | 9b6da195207b71348dd1811dfbd6f8ca5c9b7428 (patch) | |
tree | efd9f073ffcb9d5237bb0a4fc695aefe08eb7c6b /src/mongo/db/cursor_manager.h | |
parent | 82e4873c00f01e4dcb5aad4a6550a82ec4aa4a65 (diff) | |
download | mongo-9b6da195207b71348dd1811dfbd6f8ca5c9b7428.tar.gz |
SERVER-34101 Revert change to free transaction resources on snapshot read killCursors
Diffstat (limited to 'src/mongo/db/cursor_manager.h')
-rw-r--r-- | src/mongo/db/cursor_manager.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mongo/db/cursor_manager.h b/src/mongo/db/cursor_manager.h index 791007134de..90895407f53 100644 --- a/src/mongo/db/cursor_manager.h +++ b/src/mongo/db/cursor_manager.h @@ -132,12 +132,9 @@ public: /** * Destroys cursors that have been inactive for too long. * - * Returns the number of cursors that were timed out. If any of the cursors were running in - * transactions, appends those transaction IDs to 'txnsToAbort'. + * Returns the number of cursors that were timed out. */ - std::size_t timeoutCursors(OperationContext* opCtx, - Date_t now, - std::vector<std::pair<LogicalSessionId, TxnNumber>>* txnsToAbort); + std::size_t timeoutCursors(OperationContext* opCtx, Date_t now); /** * Register an executor so that it can be notified of deletions, invalidations, collection @@ -177,8 +174,7 @@ public: /** * Returns an OK status if the cursor was successfully killed, meaning either: - * (1) The cursor was erased from the cursor registry. In this case, we also return the - * transaction ID of the transaction the cursor belonged to (if it exists). + * (1) The cursor was erased from the cursor registry * (2) The cursor's operation was interrupted, and the cursor will be cleaned up when the * operation next checks for interruption. * Case (2) will only occur if the cursor is pinned. @@ -188,8 +184,7 @@ public: * * If 'shouldAudit' is true, will perform audit logging. */ - StatusWith<boost::optional<std::pair<LogicalSessionId, TxnNumber>>> killCursor( - OperationContext* opCtx, CursorId id, bool shouldAudit); + Status killCursor(OperationContext* opCtx, CursorId id, bool shouldAudit); /** * Returns an OK status if we're authorized to erase the cursor. Otherwise, returns |