diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2023-04-18 14:54:50 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-18 16:46:48 +0000 |
commit | 54bf6d0378feeb4e2bf2d8a775415370feae62e6 (patch) | |
tree | 965604153bd879b6537891d3bdfdf76289faad92 /src/mongo/util | |
parent | 2377f4bcec57245ef02d8ab60261435e9ce0a500 (diff) | |
download | mongo-54bf6d0378feeb4e2bf2d8a775415370feae62e6.tar.gz |
SERVER-70444 Interrupt the FSyncThread directly from the mongod shutdown task
Diffstat (limited to 'src/mongo/util')
-rw-r--r-- | src/mongo/util/exit.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/exit.h b/src/mongo/util/exit.h index ba6fc5cf1c5..ee145cfd393 100644 --- a/src/mongo/util/exit.h +++ b/src/mongo/util/exit.h @@ -75,7 +75,7 @@ ExitCode waitForShutdown(); void registerShutdownTask(unique_function<void(const ShutdownTaskArgs& shutdownArgs)>); /** - * For shutdown tasks that don't care to distinguish if they're called from command shutdown + * Helper for registering shutdown tasks, converts void lambda to shutdown lambda form. */ inline void registerShutdownTask(unique_function<void()> task) { registerShutdownTask([task = std::move(task)](const ShutdownTaskArgs&) { task(); }); |