From 76de5323b88080f852ca4c2f42593502d26c5620 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Mon, 9 May 2016 16:27:06 -0400 Subject: SERVER-24104 Replace stdx::duration with mongo::Duration. The mongo::Duration type does overflow checking on casts and arithmetic. This patch also moves DESTRUCTOR_GUARD out of assert_util.h into destructor_guard.h in order to break an include cycle with duration.h. --- src/mongo/db/repl/task_runner.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mongo/db/repl/task_runner.cpp') diff --git a/src/mongo/db/repl/task_runner.cpp b/src/mongo/db/repl/task_runner.cpp index 37d05af51a6..1558e88929a 100644 --- a/src/mongo/db/repl/task_runner.cpp +++ b/src/mongo/db/repl/task_runner.cpp @@ -42,6 +42,7 @@ #include "mongo/util/assert_util.h" #include "mongo/util/concurrency/old_thread_pool.h" #include "mongo/util/concurrency/thread_name.h" +#include "mongo/util/destructor_guard.h" #include "mongo/util/mongoutils/str.h" #include "mongo/util/log.h" -- cgit v1.2.1