summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/session_catalog_migration_source.h
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2021-05-13 23:01:39 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-14 14:44:26 +0000
commit9fe221be9a9b4bb04c6d9e8727e5760d1813b408 (patch)
tree70502b6c984674ed92071b2d15ee3bd30c46ec3d /src/mongo/db/s/session_catalog_migration_source.h
parent7462cb443b3ef72b41ad6ca4defe0b45bc18495a (diff)
downloadmongo-9fe221be9a9b4bb04c6d9e8727e5760d1813b408.tar.gz
SERVER-56563: Downconvert `needsRetryImage` oplog entries for chunk migrations.
Diffstat (limited to 'src/mongo/db/s/session_catalog_migration_source.h')
-rw-r--r--src/mongo/db/s/session_catalog_migration_source.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/s/session_catalog_migration_source.h b/src/mongo/db/s/session_catalog_migration_source.h
index df0d9d80259..9e138af12a1 100644
--- a/src/mongo/db/s/session_catalog_migration_source.h
+++ b/src/mongo/db/s/session_catalog_migration_source.h
@@ -258,6 +258,9 @@ private:
// Used to store the last fetched oplog from _newWriteTsList.
boost::optional<repl::OplogEntry> _lastFetchedNewWriteOplog;
+ // Used to store an image when `_lastFetchedNewWriteOplog` has a `needsRetryImage` field.
+ boost::optional<repl::OplogEntry> _lastFetchedNewWriteOplogImage;
+
// Stores the current state.
State _state{State::kActive};