summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection.h
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2021-08-25 08:30:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-02 18:48:38 +0000
commit6ff7c3a190cde6d3407fd5fae9006911a2216293 (patch)
tree2c7c0c7f3de268b386bbd43ad4ffbf66b67cb821 /src/mongo/db/sessions_collection.h
parenta7a458ee9a78a3834c7a7f081dcd8bc73f2d0f21 (diff)
downloadmongo-6ff7c3a190cde6d3407fd5fae9006911a2216293.tar.gz
SERVER-59506 Ensure that config.transactions and config.image_collection entries for child sessions are only reaped when their parent sessions are reaped
Diffstat (limited to 'src/mongo/db/sessions_collection.h')
-rw-r--r--src/mongo/db/sessions_collection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/sessions_collection.h b/src/mongo/db/sessions_collection.h
index e10b493b332..84689144ec6 100644
--- a/src/mongo/db/sessions_collection.h
+++ b/src/mongo/db/sessions_collection.h
@@ -122,8 +122,8 @@ protected:
/**
* Returns those lsids from the input 'sessions' array which are not present in the sessions
- * collection (essentially performs an inner join of 'sessions' against the sessions
- * collection).
+ * collection. Note that a parent session and its child sessions are tracked as one session in
+ * the sessions collection.
*/
LogicalSessionIdSet _doFindRemoved(const NamespaceString& ns,
const std::vector<LogicalSessionId>& sessions,