diff options
Diffstat (limited to 'src/mongo/db/repl/snapshot_thread.h')
-rw-r--r-- | src/mongo/db/repl/snapshot_thread.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/repl/snapshot_thread.h b/src/mongo/db/repl/snapshot_thread.h index 71aeede08d8..c657ee0d554 100644 --- a/src/mongo/db/repl/snapshot_thread.h +++ b/src/mongo/db/repl/snapshot_thread.h @@ -28,11 +28,10 @@ #pragma once -#include <functional> - #include "mongo/base/disallow_copying.h" #include "mongo/db/service_context.h" #include "mongo/db/storage/snapshot_manager.h" +#include "mongo/stdx/functional.h" #include "mongo/stdx/thread.h" namespace mongo { @@ -48,7 +47,7 @@ class SnapshotThread { MONGO_DISALLOW_COPYING(SnapshotThread); public: - using Callback = std::function<void(SnapshotName)>; + using Callback = stdx::function<void(SnapshotName)>; /** * Starts a thread to take periodic snapshots if supported by the storageEngine. |