summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2022-08-25 17:02:02 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-25 19:15:03 +0000
commitc34ead5d76f2f6c5c87a14ce90d9983b02e64ed4 (patch)
tree0c15313b28c8fab61e96f649bda536a21474e8ee /src/mongo/db/pipeline
parent929980fe47f160e792fa20d5e6c36a858bb2143b (diff)
downloadmongo-c34ead5d76f2f6c5c87a14ce90d9983b02e64ed4.tar.gz
SERVER-36334 Discontinue setting 'h' field in oplog entries
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r--src/mongo/db/pipeline/change_stream_test_helpers.cpp2
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream_test.cpp3
-rw-r--r--src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp1
3 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/pipeline/change_stream_test_helpers.cpp b/src/mongo/db/pipeline/change_stream_test_helpers.cpp
index 81b7ad860cb..1f6b5a4a196 100644
--- a/src/mongo/db/pipeline/change_stream_test_helpers.cpp
+++ b/src/mongo/db/pipeline/change_stream_test_helpers.cpp
@@ -98,9 +98,7 @@ repl::OplogEntry makeOplogEntry(repl::OpTypeEnum opType,
OperationSessionInfo sessionInfo,
boost::optional<repl::OpTime> prevOpTime,
boost::optional<repl::OpTime> preImageOpTime) {
- long long hash = 1LL;
return {repl::DurableOplogEntry(opTime ? *opTime : kDefaultOpTime, // optime
- hash, // hash
opType, // opType
nss, // namespace
uuid, // uuid
diff --git a/src/mongo/db/pipeline/document_source_change_stream_test.cpp b/src/mongo/db/pipeline/document_source_change_stream_test.cpp
index 1f5ca2eba18..3b98a53104f 100644
--- a/src/mongo/db/pipeline/document_source_change_stream_test.cpp
+++ b/src/mongo/db/pipeline/document_source_change_stream_test.cpp
@@ -1637,7 +1637,6 @@ TEST_F(ChangeStreamStageTest, CommitCommandReturnsOperationsFromPreparedTransact
sessionInfo.setSessionId(makeLogicalSessionIdForTest());
auto oplogEntry =
repl::DurableOplogEntry(kDefaultOpTime, // optime
- 1LL, // hash
OpTypeEnum::kCommand, // opType
nss.getCommandNS(), // namespace
boost::none, // uuid
@@ -2071,7 +2070,6 @@ TEST_F(ChangeStreamStageTest, PreparedTransactionWithMultipleOplogEntries) {
// Create an oplog entry representing the commit for the prepared transaction.
auto commitEntry = repl::DurableOplogEntry(
kDefaultOpTime, // optime
- 1LL, // hash
OpTypeEnum::kCommand, // opType
nss.getCommandNS(), // namespace
boost::none, // uuid
@@ -2217,7 +2215,6 @@ TEST_F(ChangeStreamStageTest, PreparedTransactionEndingWithEmptyApplyOps) {
// Create an oplog entry representing the commit for the prepared transaction.
auto commitEntry = repl::DurableOplogEntry(
kDefaultOpTime, // optime
- 1LL, // hash
OpTypeEnum::kCommand, // opType
nss.getCommandNS(), // namespace
boost::none, // uuid
diff --git a/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp b/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp
index 86939d47e16..47071d05cea 100644
--- a/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp
+++ b/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp
@@ -70,7 +70,6 @@ repl::OplogEntry makeOplogEntry(
boost::optional<repl::RetryImageEnum> needsRetryImage = boost::none) {
return {
repl::DurableOplogEntry(opTime, // optime
- boost::none, // hash
opType, // opType
nss, // namespace
uuid, // uuid