summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog_raii.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2022-09-11 16:25:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-11 16:56:19 +0000
commita383a136ee3c8c71fc0a7d8ccbb64fa6dcee7c90 (patch)
tree6643b4e840ae808c85339c56d2d32ce142d9fa84 /src/mongo/db/catalog_raii.cpp
parent8d09cb4f4704fe9492eca8654a9016e3ebc1d1bd (diff)
downloadmongo-a383a136ee3c8c71fc0a7d8ccbb64fa6dcee7c90.tar.gz
SERVER-69434 Make the DSS acquisition a RAII
Diffstat (limited to 'src/mongo/db/catalog_raii.cpp')
-rw-r--r--src/mongo/db/catalog_raii.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/db/catalog_raii.cpp b/src/mongo/db/catalog_raii.cpp
index 30e9224024a..a02ae9838cc 100644
--- a/src/mongo/db/catalog_raii.cpp
+++ b/src/mongo/db/catalog_raii.cpp
@@ -27,9 +27,6 @@
* it in the license file.
*/
-
-#include "mongo/platform/basic.h"
-
#include "mongo/db/catalog_raii.h"
#include "mongo/db/catalog/catalog_helper.h"
@@ -44,13 +41,11 @@
#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
-
-MONGO_FAIL_POINT_DEFINE(hangBeforeAutoGetCollectionLockFreeShardedStateAccess);
-
namespace mongo {
namespace {
MONGO_FAIL_POINT_DEFINE(setAutoGetCollectionWait);
+MONGO_FAIL_POINT_DEFINE(hangBeforeAutoGetCollectionLockFreeShardedStateAccess);
/**
* Performs some sanity checks on the collection and database.