From c559efa7dfd91d09f8c7efce99b0eb89487f17f5 Mon Sep 17 00:00:00 2001 From: Rui Liu <33423526+lriuui0x0@users.noreply.github.com> Date: Tue, 9 Dec 2025 16:35:51 +0000 Subject: [PATCH] SERVER-111331 Fix comments in the response processor (#44995) GitOrigin-RevId: 5033ede272ef4fdd2f049fc8eb0b52a83bcb7f35 --- .../write_batch_response_processor.h | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/mongo/s/write_ops/unified_write_executor/write_batch_response_processor.h b/src/mongo/s/write_ops/unified_write_executor/write_batch_response_processor.h index df0397d83d8..3ae299397b3 100644 --- a/src/mongo/s/write_ops/unified_write_executor/write_batch_response_processor.h +++ b/src/mongo/s/write_ops/unified_write_executor/write_batch_response_processor.h @@ -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: