summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/count_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/count_cmd.cpp')
-rw-r--r--src/mongo/db/commands/count_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/commands/count_cmd.cpp b/src/mongo/db/commands/count_cmd.cpp
index 821ad1bc6de..5285347a715 100644
--- a/src/mongo/db/commands/count_cmd.cpp
+++ b/src/mongo/db/commands/count_cmd.cpp
@@ -189,7 +189,8 @@ public:
nss,
viewAggCmd,
verbosity,
- APIParameters::get(opCtx).getAPIStrict().value_or(false));
+ APIParameters::get(opCtx).getAPIStrict().value_or(false),
+ request.getSerializationContext());
// An empty PrivilegeVector is acceptable because these privileges are only checked on
// getMore and explain will not open a cursor.