[SERVER-26469] remove remaining sharding usages of OldClientWriteContext Created: 05/Oct/16  Updated: 06/Dec/22  Resolved: 06/Oct/16

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: [DO NOT USE] Backlog - Sharding Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-26459 use AutoGetCollection instead of Auto... Closed
Assigned Teams:
Sharding
Participants:

 Description   

it's almost gone from sharding, so we can try to remove it completely:

src/mongo/db/s/migration_destination_manager.cpp:473:        OldClientWriteContext ctx(txn, _nss.ns());
src/mongo/db/s/migration_destination_manager.cpp:651:                    OldClientWriteContext cx(txn, _nss.ns());
src/mongo/db/s/migration_destination_manager.cpp:924:            OldClientWriteContext cx(txn, ns);
src/mongo/db/s/collection_range_deleter.cpp:60:class OldClientWriteContext;

it still exists elsewhere in many dbtests for query and in mapreduce:

src/mongo/db/commands/mr.cpp:408:            OldClientWriteContext incCtx(_txn, _config.incLong);
src/mongo/db/commands/mr.cpp:446:        OldClientWriteContext finalCtx(_txn, _config.outputOptions.finalNamespace);
src/mongo/db/commands/mr.cpp:474:        OldClientWriteContext tempCtx(_txn, _config.tempNamespace);
src/mongo/db/commands/mr.cpp:720:        OldClientWriteContext ctx(_txn, ns);
src/mongo/db/commands/mr.cpp:756:        OldClientWriteContext ctx(_txn, _config.incLong);
src/mongo/db/commands/mr.cpp:1045:        OldClientWriteContext incCtx(_txn, _config.incLong);


Generated at Thu Feb 08 04:12:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.