summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_write_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_write_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp
index e35117313b4..10d04ba0b82 100644
--- a/src/mongo/s/commands/cluster_write_cmd.cpp
+++ b/src/mongo/s/commands/cluster_write_cmd.cpp
@@ -653,6 +653,9 @@ void ClusterWriteCmd::InvocationBase::explain(OperationContext* opCtx,
(_batchedRequest.getBatchType() == BatchedCommandRequest::BatchType_Delete ||
_batchedRequest.getBatchType() == BatchedCommandRequest::BatchType_Update)) {
req = processFLEBatchExplain(opCtx, _batchedRequest);
+ tassert(6636600,
+ "encryptionInformation should be stripped from request after rewriting for explain",
+ !req->hasEncryptionInformation());
}
auto nss = req ? req->getNS() : _batchedRequest.getNS();