summaryrefslogtreecommitdiff
path: root/src/mongo/db/mirror_maestro.cpp
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2020-04-21 16:02:39 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-21 21:48:38 +0000
commit090a4336c8a7105085a69ad02bf8433e5b5a66e9 (patch)
tree83fcf512d6b2d7676aa122a206906eac35c1a791 /src/mongo/db/mirror_maestro.cpp
parent7ce7dc274c7c899855f14ac55b5344b32399598c (diff)
downloadmongo-090a4336c8a7105085a69ad02bf8433e5b5a66e9.tar.gz
SERVER-47666 Remove TODO listed in SERVER-46619 (closed as Won't Fix)
Diffstat (limited to 'src/mongo/db/mirror_maestro.cpp')
-rw-r--r--src/mongo/db/mirror_maestro.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/mirror_maestro.cpp b/src/mongo/db/mirror_maestro.cpp
index ea604566f0d..12546fe90b8 100644
--- a/src/mongo/db/mirror_maestro.cpp
+++ b/src/mongo/db/mirror_maestro.cpp
@@ -322,7 +322,8 @@ void MirrorMaestroImpl::tryMirror(std::shared_ptr<CommandInvocation> invocation)
auto clientExecutor = ClientOutOfLineExecutor::get(Client::getCurrent());
auto clientExecutorHandle = clientExecutor->getHandle();
- // TODO SERVER-46619 delegates collection to the client's baton
+ // NOTE: before using Client's out-of-line executor outside of MirrorMaestro, we must first
+ // move the consumption (i.e., `consumeAllTasks`) to the baton.
clientExecutor->consumeAllTasks();
// There is the potential to actually mirror requests, so schedule the _mirror() invocation