From ef3a058603cb41fbb624528b9455d63321e1e1c5 Mon Sep 17 00:00:00 2001 From: Cheahuychou Mao Date: Wed, 2 Nov 2022 14:57:59 +0000 Subject: SERVER-70754 Fix the comment for _flush() --- src/mongo/db/s/query_analysis_writer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mongo/db/s/query_analysis_writer.h b/src/mongo/db/s/query_analysis_writer.h index d93f187fede..508d4903b65 100644 --- a/src/mongo/db/s/query_analysis_writer.h +++ b/src/mongo/db/s/query_analysis_writer.h @@ -179,10 +179,10 @@ private: void _flushDiffs(OperationContext* opCtx); /** - * The helper for '_flushQueries'. Inserts the documents in 'buffer' into the collection 'ns' - * in batches, and removes all the inserted documents from 'buffer'. Internally retries the - * inserts on retryable errors for a fixed number of times. Ignores DuplicateKey errors since - * they are expected for the following reasons: + * The helper for '_flushQueries' and '_flushDiffs'. Inserts the documents in 'buffer' into the + * collection 'ns' in batches, and removes all the inserted documents from 'buffer'. Internally + * retries the inserts on retryable errors for a fixed number of times. Ignores DuplicateKey + * errors since they are expected for the following reasons: * - For the query buffer, a sampled query that is idempotent (e.g. a read or retryable write) * could get added to the buffer (across nodes) more than once due to retries. * - For the diff buffer, a sampled multi-update query could end up generating multiple diffs -- cgit v1.2.1