diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_write_cmd.h')
-rw-r--r-- | src/mongo/s/commands/cluster_write_cmd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.h b/src/mongo/s/commands/cluster_write_cmd.h index f29f4182808..fa8a70d51c6 100644 --- a/src/mongo/s/commands/cluster_write_cmd.h +++ b/src/mongo/s/commands/cluster_write_cmd.h @@ -155,6 +155,15 @@ private: return static_cast<const ClusterWriteCmd*>(definition()); } + /** + * Runs a two-phase protocol to explain an updateOne/deleteOne without a shard key or _id. + * Returns true if we successfully ran the protocol, false otherwise. + */ + bool _runExplainWithoutShardKey(OperationContext* opCtx, + const NamespaceString& nss, + ExplainOptions::Verbosity verbosity, + BSONObjBuilder* result); + const OpMsgRequest* _request; BatchedCommandRequest _batchedRequest; |