summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/plan_yield_policy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/plan_yield_policy.h')
-rw-r--r--src/mongo/db/query/plan_yield_policy.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/query/plan_yield_policy.h b/src/mongo/db/query/plan_yield_policy.h
index 0d2281c851b..512bc908dcc 100644
--- a/src/mongo/db/query/plan_yield_policy.h
+++ b/src/mongo/db/query/plan_yield_policy.h
@@ -29,9 +29,10 @@
#pragma once
+#include <functional>
+
#include "mongo/db/catalog/collection.h"
#include "mongo/db/query/plan_executor.h"
-#include "mongo/stdx/functional.h"
#include "mongo/util/elapsed_tracker.h"
namespace mongo {
@@ -76,7 +77,7 @@ public:
* Calls 'whileYieldingFn' after relinquishing locks and before reacquiring the locks that have
* been relinquished.
*/
- virtual Status yieldOrInterrupt(stdx::function<void()> whileYieldingFn = nullptr);
+ virtual Status yieldOrInterrupt(std::function<void()> whileYieldingFn = nullptr);
/**
* All calls to shouldYieldOrInterrupt() will return true until the next call to
@@ -153,7 +154,7 @@ private:
* The whileYieldingFn will be executed after unlocking the locks and before re-acquiring them.
*/
void _yieldAllLocks(OperationContext* opCtx,
- stdx::function<void()> whileYieldingFn,
+ std::function<void()> whileYieldingFn,
const NamespaceString& planExecNS);
};