mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Features ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) Yes ### Are you introducing any new config? If yes, do you have tests with and without them being set? Yes ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) Enable shard_collection, reshard_collection, unshard_collection with more mongo options. Moves core processing of this to the backend. also introduces shard rebalancing APIs ### Description Enable shard_collection, reshard_collection, unshard_collection with more mongo options. Moves core processing of this to the backend. also introduces shard rebalancing APIs ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request enables sharding commands for pgmongo. - `src/sharding/sharding.c`: Added functions to handle sharding, resharding, and unsharding collections, including `ShardCollectionLegacy`, `ShardCollectionCore`, `ParseNamespaceName`, `ParseShardCollectionRequest`, `ParseReshardCollectionRequest`, and `ParseUnshardCollectionRequest`.