diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_find_and_modify_cmd.h')
-rw-r--r-- | src/mongo/s/commands/cluster_find_and_modify_cmd.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/mongo/s/commands/cluster_find_and_modify_cmd.h b/src/mongo/s/commands/cluster_find_and_modify_cmd.h index ca0ec63fff3..8c2837645a2 100644 --- a/src/mongo/s/commands/cluster_find_and_modify_cmd.h +++ b/src/mongo/s/commands/cluster_find_and_modify_cmd.h @@ -156,13 +156,17 @@ private: BSONObjBuilder* result); // Two-phase protocol to run a findAndModify command without a shard key or _id. - static void _runCommandWithoutShardKey( - OperationContext* opCtx, - const NamespaceString& nss, - const BSONObj& cmdObj, - bool isExplain, - boost::optional<bool> allowShardKeyUpdatesWithoutFullShardKeyInQuery, - BSONObjBuilder* result); + static void _runCommandWithoutShardKey(OperationContext* opCtx, + const NamespaceString& nss, + const BSONObj& cmdObj, + BSONObjBuilder* result); + + // Two-phase protocol to run an explain for a findAndModify command without a shard key or _id. + static void _runExplainWithoutShardKey(OperationContext* opCtx, + const NamespaceString& nss, + const BSONObj& cmdObj, + ExplainOptions::Verbosity verbosity, + BSONObjBuilder* result); // Command invocation to be used if a shard key is specified or the collection is unsharded. static void _runCommand(OperationContext* opCtx, |