diff options
author | Mathias Stearn <mathias@10gen.com> | 2015-07-06 19:16:30 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2015-07-16 14:37:02 -0400 |
commit | b9d2e18ca68246e5d21ed42a846ff4094867f159 (patch) | |
tree | cdbbac6dc5ee00404cf6452f5dd70612983127e3 /src/mongo/db/query/find.h | |
parent | c832bc753c29f91597b75fa02c0d9019c3c20b0f (diff) | |
download | mongo-b9d2e18ca68246e5d21ed42a846ff4094867f159.tar.gz |
SERVER-17364 Don't stash RecoveryUnits across getMores
We now tell PlanExecutors to detach from their OperationContexts and to shed
all storage engine resources before stashing the ClientCursor. This is a
heavier weight operation than a normal save/restoreState which is no longer
allowed to change the OperationContext.
Diffstat (limited to 'src/mongo/db/query/find.h')
-rw-r--r-- | src/mongo/db/query/find.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/db/query/find.h b/src/mongo/db/query/find.h index 04675f44d7b..8afaf16b334 100644 --- a/src/mongo/db/query/find.h +++ b/src/mongo/db/query/find.h @@ -41,27 +41,6 @@ namespace mongo { class NamespaceString; class OperationContext; -class ScopedRecoveryUnitSwapper { -public: - ScopedRecoveryUnitSwapper(ClientCursor* cc, OperationContext* txn); - - ~ScopedRecoveryUnitSwapper(); - - /** - * Dismissing the RU swapper causes it to simply free the recovery unit rather than swapping - * it back into the ClientCursor. - */ - void dismiss(); - -private: - ClientCursor* _cc; - OperationContext* _txn; - bool _dismissed; - - std::unique_ptr<RecoveryUnit> _txnPreviousRecoveryUnit; - OperationContext::RecoveryUnitState _txnPreviousRecoveryUnitState; -}; - /** * Returns true if enough results have been prepared to stop adding more to the first batch. * |