diff options
-rw-r--r-- | src/mongo/s/commands/cluster_write_without_shard_key_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_write_without_shard_key_cmd.cpp b/src/mongo/s/commands/cluster_write_without_shard_key_cmd.cpp index ea165b9eab8..c1bd46f8cda 100644 --- a/src/mongo/s/commands/cluster_write_without_shard_key_cmd.cpp +++ b/src/mongo/s/commands/cluster_write_without_shard_key_cmd.cpp @@ -57,8 +57,9 @@ bool requiresOriginalQuery(OperationContext* opCtx, const boost::optional<BSONObj>& query = boost::none, const boost::optional<BSONObj>& projection = boost::none) { if (updateRequest) { + ExtensionsCallbackNoop extensionsCallback = ExtensionsCallbackNoop(); ParsedUpdate parsedUpdate( - opCtx, &updateRequest.get(), ExtensionsCallbackNoop(), CollectionPtr::null); + opCtx, &updateRequest.get(), extensionsCallback, CollectionPtr::null); uassertStatusOK(parsedUpdate.parseRequest()); if (parsedUpdate.getDriver()->needMatchDetails()) { return true; |