[SERVER-42791] Remove unused/duplicate definition of UnshardedCollection in metadata_manager.cpp Created: 13/Aug/19  Updated: 29/Oct/23  Resolved: 13/Aug/19

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

Type: Task Priority: Major - P3
Reporter: Esha Maharishi (Inactive) Assignee: Esha Maharishi (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-08-26
Participants:

 Description   

There are identical definitions of the UnshardedCollection class in metadata_manager.cpp and collection_sharding_state.cpp, and I think only the one in collection_sharding_state.cpp is actually used:

class UnshardedCollection : public ScopedCollectionMetadata::Impl {
public:
    UnshardedCollection() = default;
 
    const CollectionMetadata& get() override {
        return _metadata;
    }
 
private:
    CollectionMetadata _metadata;
};
 
const auto kUnshardedCollection = std::make_shared<UnshardedCollection>();



 Comments   
Comment by Githook User [ 13/Aug/19 ]

Author:

{'name': 'Esha Maharishi', 'email': 'esha.maharishi@mongodb.com', 'username': 'EshaMaharishi'}

Message: SERVER-42791 Remove unused/duplicate definition of UnshardedCollection in metadata_manager.cpp
Branch: master
https://github.com/mongodb/mongo/commit/d3d60b5500b9993d0a998cb7ac911430662d905c

Generated at Thu Feb 08 05:01:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.