summaryrefslogtreecommitdiff
path: root/src/mongo/db/views
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2021-09-03 19:11:40 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-08 07:54:48 +0000
commitc90f38192378c8526354465991830524eda90c1f (patch)
tree73ce6a76f4dc6f8eaa206309becf5881aaf20a32 /src/mongo/db/views
parenta0a0d7eecccf38f028a77c4cc8b0f13f8673f675 (diff)
downloadmongo-c90f38192378c8526354465991830524eda90c1f.tar.gz
SERVER-59782 migrate makeGuard calls to ScopeGuard
Diffstat (limited to 'src/mongo/db/views')
-rw-r--r--src/mongo/db/views/view_graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/views/view_graph.cpp b/src/mongo/db/views/view_graph.cpp
index def5d50154d..4282a0469a4 100644
--- a/src/mongo/db/views/view_graph.cpp
+++ b/src/mongo/db/views/view_graph.cpp
@@ -65,7 +65,7 @@ Status ViewGraph::insertAndValidate(const ViewDefinition& view,
// If the graph fails validation for any reason, the insert is automatically rolled back on
// exiting this method.
- auto guard = makeGuard([&] { remove(viewNss); });
+ ScopeGuard guard([&] { remove(viewNss); });
// Check for cycles and get the height of the children.
StatsMap statsMap;