summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2020-02-04 16:40:20 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-24 19:15:57 +0000
commit1525d54f235715d10e41711122a448bd5253588d (patch)
treee03a3ee55653ff6c7ec3b5f4d95e5d58e0e06e11 /src/mongo/db/curop.h
parent1cb6ac41648ab8bcc926a1dae6345a01c735ee52 (diff)
downloadmongo-1525d54f235715d10e41711122a448bd5253588d.tar.gz
SERVER-46197 Make build flag to disable diagnostic latches
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 41a5e5da50a..076bc119d75 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -30,6 +30,7 @@
#pragma once
+#include "mongo/config.h"
#include "mongo/db/clientcursor.h"
#include "mongo/db/commands.h"
#include "mongo/db/cursor_id.h"
@@ -39,10 +40,13 @@
#include "mongo/logv2/attribute_storage.h"
#include "mongo/logv2/log_component.h"
#include "mongo/platform/atomic_word.h"
-#include "mongo/util/diagnostic_info.h"
#include "mongo/util/progress_meter.h"
#include "mongo/util/time_support.h"
+#ifndef MONGO_CONFIG_USE_RAW_LATCHES
+#include "mongo/util/diagnostic_info.h"
+#endif
+
namespace mongo {
class Client;