summaryrefslogtreecommitdiff
path: root/src/mongo/executor/network_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/executor/network_interface.h')
-rw-r--r--src/mongo/executor/network_interface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/executor/network_interface.h b/src/mongo/executor/network_interface.h
index 0cdd2175118..033dfb00d30 100644
--- a/src/mongo/executor/network_interface.h
+++ b/src/mongo/executor/network_interface.h
@@ -139,6 +139,9 @@ public:
* Returns ErrorCodes::ShutdownInProgress if NetworkInterface::shutdown has already started
* and Status::OK() otherwise. If it returns Status::OK(), then the onFinish argument will be
* executed by NetworkInterface eventually; otherwise, it will not.
+ *
+ * Note that if you pass a baton to startCommand and that baton refuses work, then your onFinish
+ * function will not run.
*/
virtual Status startCommand(const TaskExecutor::CallbackHandle& cbHandle,
RemoteCommandRequest& request,