summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/update_stage.h
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2023-05-15 14:29:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-15 16:51:56 +0000
commitae9dcbeaba01de7526e3ea45902bb9ae2905d537 (patch)
treee0acefcbe477e9cdad3a37bd45dac0cce88b6931 /src/mongo/db/exec/update_stage.h
parentda78632c6843c8e7d79b598cb7d9ff307acf5ada (diff)
downloadmongo-ae9dcbeaba01de7526e3ea45902bb9ae2905d537.tar.gz
SERVER-77068 Use collection acquisitions in Update/Delete stages
Diffstat (limited to 'src/mongo/db/exec/update_stage.h')
-rw-r--r--src/mongo/db/exec/update_stage.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/db/exec/update_stage.h b/src/mongo/db/exec/update_stage.h
index 9c9bcc483ad..2f7dfd397aa 100644
--- a/src/mongo/db/exec/update_stage.h
+++ b/src/mongo/db/exec/update_stage.h
@@ -85,7 +85,7 @@ private:
*
* Callers of doWork() must be holding a write lock.
*/
-class UpdateStage : public RequiresMutableCollectionStage {
+class UpdateStage : public RequiresWritableCollectionStage {
UpdateStage(const UpdateStage&) = delete;
UpdateStage& operator=(const UpdateStage&) = delete;
@@ -144,9 +144,6 @@ protected:
mutablebson::Document& _doc;
mutablebson::DamageVector _damages;
- // Cached collection sharding description. It is reset when restoring from a yield.
- write_stage_common::CachedShardingDescription _cachedShardingCollectionDescription;
-
private:
/**
* Computes the result of applying mods to the document 'oldObj' at RecordId 'recordId' in
@@ -186,8 +183,7 @@ private:
* been updated to a value belonging to a chunk that is not owned by this shard. We cannot apply
* this update atomically.
*/
- void checkUpdateChangesExistingShardKey(const ShardingWriteRouter& shardingWriteRouter,
- const BSONObj& newObj,
+ void checkUpdateChangesExistingShardKey(const BSONObj& newObj,
const Snapshotted<BSONObj>& oldObj);
void checkUpdateChangesReshardingKey(const ShardingWriteRouter& shardingWriteRouter,