SERVER-111331 Fix comments in the response processor (#44995)

GitOrigin-RevId: 5033ede272ef4fdd2f049fc8eb0b52a83bcb7f35
This commit is contained in:
Rui Liu 2025-12-09 16:35:51 +00:00 committed by MongoDB Bot
parent 6ddfe454e3
commit c559efa7df
1 changed files with 2 additions and 15 deletions

View File

@ -60,21 +60,8 @@ struct ProcessorResult {
};
/**
* Handles responses from shards and interactions with the catalog necessary to retry certain
* errors.
* Intended workflow:
*
* WriteBatchResponseProcessor processor;
* {
* RoutingContext rtx(...);
* WriteBatchResponse response = ...;
* auto [toRetry, collectionsToCreate] = processor.onWriteBatchResponse(response);
* // queue operations to be retried;
* }
* // It is important that the lifetime of RoutingContext has ended, since creating collections will
* start a new routing operation
* // Process more rounds of batches...
* // Generate a response based on the original command we received.
* Handles responses from shards and aggregates shard results. For retryable error responses, return
* necessary information for the scheduler to retry write operations.
*/
class WriteBatchResponseProcessor {
public: