diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2017-09-25 14:24:24 -0400 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2017-10-04 09:08:02 -0400 |
commit | a73cff087d5142c378dd05e6fad3f8f6825c5401 (patch) | |
tree | 955ac8bede1fe71d105403d5023d10feecd36ecd /src/mongo/transport/service_state_machine.h | |
parent | 939f2bcda18db41b774bbe3cf16e1d4928c58e5d (diff) | |
download | mongo-a73cff087d5142c378dd05e6fad3f8f6825c5401.tar.gz |
SERVER-31265 Mark new sessions as pending so terminateIfTagsDontMatch don't terminate sessions that haven't had their tags set yet. Clear this flag when we get the first set of tags.
Diffstat (limited to 'src/mongo/transport/service_state_machine.h')
-rw-r--r-- | src/mongo/transport/service_state_machine.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/transport/service_state_machine.h b/src/mongo/transport/service_state_machine.h index b89b3a34d24..35812b86940 100644 --- a/src/mongo/transport/service_state_machine.h +++ b/src/mongo/transport/service_state_machine.h @@ -119,7 +119,16 @@ public: State state(); /* + * Terminates the associated transport Session, regardless of tags. + * + * This will not block on the session terminating cleaning itself up, it returns immediately. + */ + void terminate(); + + /* * Terminates the associated transport Session if its tags don't match the supplied tags. + * If the session is in a pending state, before any tags have been set, it will not be + * terminated. * * This will not block on the session terminating cleaning itself up, it returns immediately. */ |