MCPcopy Create free account
hub / github.com/documentdb/documentdb / ProcessBatchDeleteUnsharded

Function ProcessBatchDeleteUnsharded

pg_documentdb/src/commands/delete.c:688–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686
687
688static pgbson *
689ProcessBatchDeleteUnsharded(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/*

Callers 1

command_deleteFunction · 0.85

Calls 2

CallDeleteWorkerFunction · 0.85

Tested by

no test coverage detected