summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/process_interface/common_process_interface.h
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-02-13 16:38:33 -0500
committerGregory Noma <gregory.noma@gmail.com>2020-02-18 17:13:19 -0500
commita68508f9922ad163ff98f8fa13953b1efe9d57d0 (patch)
tree1ead40c94d7da611cbb6cd36a342cf76ffe2e452 /src/mongo/db/pipeline/process_interface/common_process_interface.h
parent11640b2138d40777a4b45005628b4facfba7e6b2 (diff)
downloadmongo-46137.tar.gz
SERVER-46137 Implement ReplicaSetNodeProcessInterface methods needed for $merge46137
Diffstat (limited to 'src/mongo/db/pipeline/process_interface/common_process_interface.h')
-rw-r--r--src/mongo/db/pipeline/process_interface/common_process_interface.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/process_interface/common_process_interface.h b/src/mongo/db/pipeline/process_interface/common_process_interface.h
index 7f68f8d201f..ca83c99a0e9 100644
--- a/src/mongo/db/pipeline/process_interface/common_process_interface.h
+++ b/src/mongo/db/pipeline/process_interface/common_process_interface.h
@@ -33,6 +33,7 @@
#include "mongo/bson/bsonobj.h"
#include "mongo/db/pipeline/process_interface/mongo_process_interface.h"
+#include "mongo/s/write_ops/batched_command_request.h"
namespace mongo {
@@ -52,6 +53,13 @@ public:
static bool keyPatternNamesExactPaths(const BSONObj& keyPattern,
const std::set<FieldPath>& uniqueKeyPaths);
+ /**
+ * Attaches the write concern to the given batch request. If 'writeConcern' has been default
+ * initialized to {w: 0, wtimeout: 0} then we do not bother attaching it.
+ */
+ static void attachWriteConcern(BatchedCommandRequest* request,
+ const WriteConcernOptions& writeConcern);
+
std::vector<BSONObj> getCurrentOps(const boost::intrusive_ptr<ExpressionContext>& expCtx,
CurrentOpConnectionsMode connMode,
CurrentOpSessionsMode sessionMode,