- 
    Type:
Task
 - 
    Resolution: Incomplete
 - 
    Priority:
Major - P3
 - 
    None
 - 
    Affects Version/s: None
 - 
    Component/s: None
 - 
    None
 
- 
        Serverless
 - 
        Server Serverless 2021-11-29
 - 
        None
 
- 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 
Mongos calls sharding-specific commands shardsvrDropCollection, shardsvrRenameCollection, shardsvrDropDatabase against the primary shard for the database.
However, mongoq needs to be deployed in front of non-shardsvr replica sets, so cannot call these shardsvr commands.
This ticket is to:
- Stop linking the existing cluster_drop_collection_cmd.cpp, cluster_rename_collection_cmd.cpp, and cluster_drop_database_cmd.cpp into mongoq
 - Create new mongoq versions of dropCollection, renameCollection, and dropDatabase that directly forward the client's request to the primary shard for the database (perhaps following the pattern of cluster_convert_to_capped_cmd.cpp). We can move the nonShardedCollectionCommandPassthrough to cluster_commands_helpers.h/cpp so it can be called from all of the new command's files.
 - Link the new mongoq versions of the commands into mongoq
 
This ticket depends on SERVER-61312, which will allow linking different commands in to mongoq than mongos.
- depends on
 - 
                    
SERVER-61312 Allow mongos and mongoq to link in different commands
-         
 - Closed
 
 -