diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2021-08-25 08:30:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-02 18:48:38 +0000 |
commit | 6ff7c3a190cde6d3407fd5fae9006911a2216293 (patch) | |
tree | 2c7c0c7f3de268b386bbd43ad4ffbf66b67cb821 /src/mongo/db/sessions_collection.h | |
parent | a7a458ee9a78a3834c7a7f081dcd8bc73f2d0f21 (diff) | |
download | mongo-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.h | 4 |
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, |