diff options
author | Jason Zhang <jason.zhang@mongodb.com> | 2023-05-08 18:02:31 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-08 18:38:27 +0000 |
commit | da1617bea89cb3be77f37e80f0256dc90f128cdc (patch) | |
tree | 7ae0bdb2d5a14b0147f13f777d8b073ca5ab6799 /src/mongo | |
parent | 7d56b75ba3873f8121dd5611f4d571bacff135e9 (diff) | |
download | mongo-da1617bea89cb3be77f37e80f0256dc90f128cdc.tar.gz |
SERVER-76916 Keep ExtensionsCallbackNoop object in scope while parsing an update
Diffstat (limited to 'src/mongo')
-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; |