summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2022-11-02 14:57:59 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-02 15:45:32 +0000
commitef3a058603cb41fbb624528b9455d63321e1e1c5 (patch)
tree60f481183ec2d041a43ae7c9566c66bde268b9a7
parentbf0aaf15d5b941c4a4a775e8e2aac5362e0ea9f1 (diff)
downloadmongo-ef3a058603cb41fbb624528b9455d63321e1e1c5.tar.gz
SERVER-70754 Fix the comment for _flush()
-rw-r--r--src/mongo/db/s/query_analysis_writer.h8
1 files 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