summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.h')
-rw-r--r--src/mongo/db/repl/oplog_entry.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/mongo/db/repl/oplog_entry.h b/src/mongo/db/repl/oplog_entry.h
index 7552faa3f9e..40092e47f4e 100644
--- a/src/mongo/db/repl/oplog_entry.h
+++ b/src/mongo/db/repl/oplog_entry.h
@@ -87,13 +87,11 @@ public:
o.parseProtected(ctxt, bsonObject);
return o;
}
-
- const BSONObj& getPostImageDocumentKey() const {
- return _postImageDocumentKey;
+ const BSONObj& getPreImageDocumentKey() const {
+ return _preImageDocumentKey;
}
-
- void setPostImageDocumentKey(BSONObj value) {
- _postImageDocumentKey = std::move(value);
+ void setPreImageDocumentKey(BSONObj value) {
+ _preImageDocumentKey = std::move(value);
}
const BSONObj& getPreImage() const {
@@ -217,8 +215,7 @@ public:
}
private:
- // Stores the post image _id + shard key values.
- BSONObj _postImageDocumentKey;
+ BSONObj _preImageDocumentKey;
// Used for storing the pre-image and post-image for the operation in-memory regardless of where
// the images should be persisted.
@@ -371,10 +368,6 @@ public:
getDurableReplOperation().setFromMigrate(value);
}
- void setCheckExistenceForDiffInsert() & {
- getDurableReplOperation().setCheckExistenceForDiffInsert(true);
- }
-
/**
* Same as setFromMigrate but only set when it is true.
*/
@@ -392,7 +385,6 @@ class DurableOplogEntry : private MutableOplogEntry {
public:
// Make field names accessible.
using MutableOplogEntry::k_idFieldName;
- using MutableOplogEntry::kCheckExistenceForDiffInsertFieldName;
using MutableOplogEntry::kDestinedRecipientFieldName;
using MutableOplogEntry::kDurableReplOperationFieldName;
using MutableOplogEntry::kFromMigrateFieldName;
@@ -420,7 +412,6 @@ public:
// Make serialize() and getters accessible.
using MutableOplogEntry::get_id;
- using MutableOplogEntry::getCheckExistenceForDiffInsert;
using MutableOplogEntry::getDestinedRecipient;
using MutableOplogEntry::getDurableReplOperation;
using MutableOplogEntry::getFromMigrate;
@@ -487,7 +478,6 @@ public:
const NamespaceString& nss,
const boost::optional<UUID>& uuid,
const boost::optional<bool>& fromMigrate,
- const boost::optional<bool>& checkExistenceForDiffInsert,
int version,
const BSONObj& oField,
const boost::optional<BSONObj>& o2Field,
@@ -646,8 +636,6 @@ public:
static constexpr auto kDurableReplOperationFieldName =
DurableOplogEntry::kDurableReplOperationFieldName;
static constexpr auto kFromMigrateFieldName = DurableOplogEntry::kFromMigrateFieldName;
- static constexpr auto kCheckExistenceForDiffInsertFieldName =
- DurableOplogEntry::kCheckExistenceForDiffInsertFieldName;
static constexpr auto kFromTenantMigrationFieldName =
DurableOplogEntry::kFromTenantMigrationFieldName;
static constexpr auto kHashFieldName = DurableOplogEntry::kHashFieldName;
@@ -720,7 +708,6 @@ public:
const boost::optional<std::int64_t> getHash() const&;
std::int64_t getVersion() const;
const boost::optional<bool> getFromMigrate() const&;
- bool getCheckExistenceForDiffInsert() const&;
const boost::optional<mongo::UUID>& getFromTenantMigration() const&;
const boost::optional<mongo::repl::OpTime>& getPrevWriteOpTimeInTransaction() const&;
const boost::optional<mongo::repl::OpTime>& getPostImageOpTime() const&;