summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_applier.h
diff options
context:
space:
mode:
authorSamy Lanka <samy.lanka@mongodb.com>2019-01-24 21:57:25 -0500
committerSamy Lanka <samy.lanka@mongodb.com>2019-02-11 12:27:33 -0500
commit4f858c52b05ecc49d2ae19bbaf59fc0aad445b7e (patch)
tree2af6afbcb4d27b4b1ce22eb25750583666396a8a /src/mongo/db/repl/oplog_applier.h
parentd568e329a67eee8ba241d52067750a3d8c42dc0f (diff)
downloadmongo-4f858c52b05ecc49d2ae19bbaf59fc0aad445b7e.tar.gz
SERVER-36489 Start initial sync oplog fetching from the 'oldest active transaction timestamp'
SERVER-36490 Initial sync should not actually prepare transactions on applying prepareTransaction oplog entries SERVER-36491 During initial sync, make commitTransaction oplog entries apply the transaction from the prepare oplog entry
Diffstat (limited to 'src/mongo/db/repl/oplog_applier.h')
-rw-r--r--src/mongo/db/repl/oplog_applier.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_applier.h b/src/mongo/db/repl/oplog_applier.h
index cf6f2405b2a..ecc45bf76df 100644
--- a/src/mongo/db/repl/oplog_applier.h
+++ b/src/mongo/db/repl/oplog_applier.h
@@ -68,6 +68,10 @@ public:
// For initial sync only. If an update fails, the missing document is fetched from
// this sync source to insert into the local collection.
boost::optional<HostAndPort> missingDocumentSourceForInitialSync;
+
+ // Used to determine which operations should be applied. Only initial sync will set this to
+ // be something other than the null optime.
+ OpTime beginApplyingOpTime = OpTime();
};
/**