| 686 | |
| 687 | |
| 688 | static pgbson * |
| 689 | ProcessBatchDeleteUnsharded(MongoCollection *collection, BatchDeletionSpec *batchSpec, |
| 690 | text *transactionId) |
| 691 | { |
| 692 | Assert(collection->shardKey == NULL); |
| 693 | |
| 694 | pgbson *deleteWorkerSpecs = SerializeDeleteWorkerSpecForUnsharded(batchSpec); |
| 695 | |
| 696 | /* since this is unsharded, the keyHash is just the collection id. */ |
| 697 | int shardKeyHash = collection->collectionId; |
| 698 | return CallDeleteWorker(collection, deleteWorkerSpecs, |
| 699 | shardKeyHash, transactionId, batchSpec->deletionSequence); |
| 700 | } |
| 701 | |
| 702 | |
| 703 | /* |
no test coverage detected